add rank_photos package
This commit is contained in:
		
							parent
							
								
									11c746f236
								
							
						
					
					
						commit
						6f5e26e90f
					
				@ -17,5 +17,8 @@
 | 
			
		||||
  example-package = pkgs.callPackage ./pkgs/example-package { };
 | 
			
		||||
  # some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
 | 
			
		||||
  # ...
 | 
			
		||||
 | 
			
		||||
  rank_photos = pkgs.callPackage ./pkgs/rank_photos { };
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										33
									
								
								pkgs/rank_photos/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								pkgs/rank_photos/default.nix
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,33 @@
 | 
			
		||||
{ stdenv, fetchFromGitLab, python3}:
 | 
			
		||||
 | 
			
		||||
stdenv.mkDerivation {
 | 
			
		||||
  name = "rank_photos";
 | 
			
		||||
  version = "1.0.0";
 | 
			
		||||
  
 | 
			
		||||
  src = fetchFromGitLab {
 | 
			
		||||
    domain = "git.dodsorf.as";
 | 
			
		||||
    owner = "dandellion";
 | 
			
		||||
    repo = "elo-rank-photos";
 | 
			
		||||
    rev = "7db05f656515f89e837efdc2661363c131f3a6c0";
 | 
			
		||||
    sha256 = "08fkv348vgivxpqrx36q7y0ax069i4ypp8ya46jnj8fnx40dzxzk";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  buildInputs = [(python3.withPackages (pythonPackages: with pythonPackages; [
 | 
			
		||||
    matplotlib
 | 
			
		||||
    tkinter
 | 
			
		||||
    numpy
 | 
			
		||||
    exifread
 | 
			
		||||
    pillow
 | 
			
		||||
  ]))];
 | 
			
		||||
 | 
			
		||||
  installPhase = ''
 | 
			
		||||
    mkdir -p $out/bin
 | 
			
		||||
    cp ./rank_photos.py $out/bin/rank_photos
 | 
			
		||||
    chmod +x $out/bin/rank_photos
 | 
			
		||||
  '';
 | 
			
		||||
  
 | 
			
		||||
  meta = {
 | 
			
		||||
    description = "Compare and rank images by select which one is best and assigning elo ranking.";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user