add rank_photos package

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-10-31 18:57:34 +01:00
parent 11c746f236
commit 6f5e26e90f
2 changed files with 36 additions and 0 deletions

View File

@ -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 { };
}

View 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.";
};
}