2019-11-01 07:48:23 +01:00
|
|
|
{ stdenv, fetchFromGitLab, python3, bash, sxiv}:
|
2019-10-31 18:57:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "rank_photos";
|
2019-11-01 07:58:17 +01:00
|
|
|
version = "2.0.0";
|
2019-10-31 18:57:34 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "git.dodsorf.as";
|
|
|
|
owner = "dandellion";
|
|
|
|
repo = "elo-rank-photos";
|
2019-11-01 07:48:23 +01:00
|
|
|
rev = "e7b3f8d4ee7069aba9622a1651d15834ddb060b5";
|
2019-11-01 07:49:34 +01:00
|
|
|
sha256 = "1y8wgvcsv5avg1vggwkn8n53kklj7qwnqbxa8gkn9zzfymddvwq9";
|
2019-10-31 18:57:34 +01:00
|
|
|
};
|
|
|
|
|
2019-11-01 07:48:23 +01:00
|
|
|
buildInputs = [
|
|
|
|
(python3.withPackages (pythonPackages: with pythonPackages; [
|
|
|
|
matplotlib
|
|
|
|
tkinter
|
|
|
|
numpy
|
|
|
|
exifread
|
|
|
|
pillow
|
|
|
|
]))
|
|
|
|
bash
|
|
|
|
sxiv
|
|
|
|
];
|
2019-10-31 18:57:34 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ./rank_photos.py $out/bin/rank_photos
|
2019-11-01 07:48:23 +01:00
|
|
|
cp ./view_ranked.sh $out/bin/view_ranked
|
|
|
|
chmod +x $out/bin/rank_photos $out/bin/view_ranked
|
2019-10-31 18:57:34 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Compare and rank images by select which one is best and assigning elo ranking.";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|