pythonPackages.pypillowfight: 0.2 -> 0.2.4
This commit is contained in:
parent
5314a74ee6
commit
cd599c8fa6
2 changed files with 39 additions and 29 deletions
38
pkgs/development/python-modules/pypillowfight/default.nix
Normal file
38
pkgs/development/python-modules/pypillowfight/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ stdenv, buildPythonPackage, fetchFromGitLab, nose, pillow
|
||||||
|
, isPy3k, isPyPy
|
||||||
|
}:
|
||||||
|
buildPythonPackage rec {
|
||||||
|
name = "pypillowfight-${version}";
|
||||||
|
version = "0.2.4";
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
domain = "gitlab.gnome.org";
|
||||||
|
group = "World";
|
||||||
|
owner = "OpenPaperwork";
|
||||||
|
repo = "libpillowfight";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0wbzfhbzim61fmkm7p7f2rwslacla1x00a6xp50haawjh9zfwc4y";
|
||||||
|
};
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
echo '#define INTERNAL_PILLOWFIGHT_VERSION "${version}"' > src/pillowfight/_version.h
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Disable tests because they're designed to only work on Debian:
|
||||||
|
# https://github.com/jflesch/libpillowfight/issues/2#issuecomment-268259174
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
# Python 2.x is not supported, see:
|
||||||
|
# https://github.com/jflesch/libpillowfight/issues/1
|
||||||
|
disabled = !isPy3k && !isPyPy;
|
||||||
|
|
||||||
|
# This is needed by setup.py regardless of whether tests are enabled.
|
||||||
|
buildInputs = [ nose ];
|
||||||
|
propagatedBuildInputs = [ pillow ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Library containing various image processing algorithms";
|
||||||
|
inherit (src) homepage;
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
};
|
||||||
|
}
|
|
@ -3918,35 +3918,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pypillowfight = buildPythonPackage rec {
|
pypillowfight = callPackage ../development/python-modules/pypillowfight { };
|
||||||
name = "pypillowfight-${version}";
|
|
||||||
version = "0.2.1";
|
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "jflesch";
|
|
||||||
repo = "libpillowfight";
|
|
||||||
rev = version;
|
|
||||||
sha256 = "1rwmajsy9qhl3qhhy5mw0xmr3n8abxcq8baidpn0sxv6yjg2369z";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Disable tests because they're designed to only work on Debian:
|
|
||||||
# https://github.com/jflesch/libpillowfight/issues/2#issuecomment-268259174
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
# Python 2.x is not supported, see:
|
|
||||||
# https://github.com/jflesch/libpillowfight/issues/1
|
|
||||||
disabled = !isPy3k && !isPyPy;
|
|
||||||
|
|
||||||
# This is needed by setup.py regardless of whether tests are enabled.
|
|
||||||
buildInputs = [ self.nose ];
|
|
||||||
propagatedBuildInputs = [ self.pillow ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Library containing various image processing algorithms";
|
|
||||||
homepage = "https://github.com/jflesch/libpillowfight";
|
|
||||||
license = licenses.gpl3Plus;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pyprind = callPackage ../development/python-modules/pyprind { };
|
pyprind = callPackage ../development/python-modules/pyprind { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue