2016-09-25 22:52:22 +01:00
|
|
|
{ stdenv, fetchsvn, pythonPackages, makeWrapper, fbida, which }:
|
2011-08-22 21:26:11 +01:00
|
|
|
|
2016-09-25 22:52:22 +01:00
|
|
|
let
|
|
|
|
inherit (pythonPackages) python;
|
|
|
|
in pythonPackages.buildPythonApplication rec {
|
2015-11-20 12:48:30 +00:00
|
|
|
name = "jbrout-${version}";
|
2011-08-22 21:26:11 +01:00
|
|
|
version = "338";
|
2015-11-20 12:48:30 +00:00
|
|
|
|
2011-08-22 21:26:11 +01:00
|
|
|
src = fetchsvn {
|
|
|
|
url = "http://jbrout.googlecode.com/svn/trunk";
|
2015-11-20 12:48:30 +00:00
|
|
|
rev = version;
|
2011-08-22 21:26:11 +01:00
|
|
|
sha256 = "0257ni4vkxgd0qhs73fw5ppw1qpf11j8fgwsqc03b1k1yv3hk4hf";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2015-11-20 12:48:30 +00: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 21:26:11 +01:00
|
|
|
find | xargs touch
|
2015-11-20 12:48:30 +00:00
|
|
|
|
|
|
|
substituteInPlace setup.py --replace "version=__version__" "version=baseVersion"
|
2011-08-22 21:26:11 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
2015-11-20 12:48:30 +00:00
|
|
|
mkdir $out/bin
|
|
|
|
echo "python $out/${python.sitePackages}/jbrout/jbrout.py" > $out/bin/jbrout
|
2011-08-22 21:26:11 +01:00
|
|
|
chmod +x $out/bin/jbrout
|
|
|
|
'';
|
|
|
|
|
2015-11-20 12:48:30 +00:00
|
|
|
buildInputs = [ python makeWrapper which ];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ pillow lxml pyGtkGlade pyexiv2 fbida ];
|
|
|
|
|
2011-08-22 21:26:11 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "http://code.google.com/p/jbrout";
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "Photo manager";
|
2013-10-08 10:05:19 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-08-22 21:26:11 +01:00
|
|
|
};
|
|
|
|
}
|