2016-09-25 23:52:22 +02:00
|
|
|
{ stdenv, fetchsvn, pythonPackages, makeWrapper, fbida, which }:
|
2011-08-22 22:26:11 +02:00
|
|
|
|
2016-09-25 23:52:22 +02:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python;
|
|
|
|
in pythonPackages.buildPythonApplication rec {
|
2015-11-20 13:48:30 +01:00
|
|
|
name = "jbrout-${version}";
|
2011-08-22 22:26:11 +02:00
|
|
|
version = "338";
|
2015-11-20 13:48:30 +01:00
|
|
|
|
2011-08-22 22:26:11 +02:00
|
|
|
src = fetchsvn {
|
|
|
|
url = "http://jbrout.googlecode.com/svn/trunk";
|
2015-11-20 13:48:30 +01:00
|
|
|
rev = version;
|
2011-08-22 22:26:11 +02:00
|
|
|
sha256 = "0257ni4vkxgd0qhs73fw5ppw1qpf11j8fgwsqc03b1k1yv3hk4hf";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2015-11-20 13:48:30 +01:00
|
|
|
# XXX: patchPhase to avoid this
|
|
|
|
# File "/nix/store/vnyjxn6h3rbrn49m25yyw7i1chlxglhw-python-2.7.1/lib/python2.7/zipfile.py", line 348, in FileHeader
|
|
|
|
# len(filename), len(extra))
|
|
|
|
#struct.error: ushort format requires 0 <= number <= USHRT_MAX
|
|
|
|
patchPhase = ''
|
2011-08-22 22:26:11 +02:00
|
|
|
find | xargs touch
|
2015-11-20 13:48:30 +01:00
|
|
|
|
|
|
|
substituteInPlace setup.py --replace "version=__version__" "version=baseVersion"
|
2011-08-22 22:26:11 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2015-11-20 13:48:30 +01:00
|
|
|
mkdir $out/bin
|
|
|
|
echo "python $out/${python.sitePackages}/jbrout/jbrout.py" > $out/bin/jbrout
|
2011-08-22 22:26:11 +02:00
|
|
|
chmod +x $out/bin/jbrout
|
|
|
|
'';
|
|
|
|
|
2015-11-20 13:48:30 +01:00
|
|
|
buildInputs = [ python makeWrapper which ];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ pillow lxml pyGtkGlade pyexiv2 fbida ];
|
|
|
|
|
2011-08-22 22:26:11 +02:00
|
|
|
meta = {
|
2017-08-22 20:50:04 +02:00
|
|
|
homepage = http://manatlan.com/jbrout/;
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Photo manager";
|
2013-10-08 11:05:19 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2018-08-06 13:03:36 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-08-22 22:26:11 +02:00
|
|
|
};
|
|
|
|
}
|