git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pypillowfight: 0.2 -> 0.2.4
commitcd599c8fa6b636ece76eebfc49a2cd0439002ef2 authorSymphorien Gibol <symphorien+git@xlumurb.eu> dateMon 10 Sep 2018, 17:29 (8 years ago) parent5314a74
2 files changed+39−29
pkgs/development/python-modules/pypillowfight/default.nix+38 pkgs/top-level/python-packages.nix+1−29
pkgs/development/python-modules/pypillowfight/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, buildPythonPackage, fetchFromGitLab, nose, pillow
2+, isPy3k, isPyPy
3+}:
4+buildPythonPackage rec {
5+ name = "pypillowfight-${version}";
6+ version = "0.2.4";
7+
8+ src = fetchFromGitLab {
9+ domain = "gitlab.gnome.org";
10+ group = "World";
11+ owner = "OpenPaperwork";
12+ repo = "libpillowfight";
13+ rev = version;
14+ sha256 = "0wbzfhbzim61fmkm7p7f2rwslacla1x00a6xp50haawjh9zfwc4y";
15+ };
16+
17+ prePatch = ''
18+ echo '#define INTERNAL_PILLOWFIGHT_VERSION "${version}"' > src/pillowfight/_version.h
19+ '';
20+
21+ # Disable tests because they're designed to only work on Debian:
22+ # https://github.com/jflesch/libpillowfight/issues/2#issuecomment-268259174
23+ doCheck = false;
24+
25+ # Python 2.x is not supported, see:
26+ # https://github.com/jflesch/libpillowfight/issues/1
27+ disabled = !isPy3k && !isPyPy;
28+
29+ # This is needed by setup.py regardless of whether tests are enabled.
30+ buildInputs = [ nose ];
31+ propagatedBuildInputs = [ pillow ];
32+
33+ meta = with stdenv.lib; {
34+ description = "Library containing various image processing algorithms";
35+ inherit (src) homepage;
36+ license = licenses.gpl3Plus;
37+ };
38+}
pkgs/top-level/python-packages.nix+1−29
@@ -3918,35 +3918,7 @@ in {
39183918 };
39193919 };
39203920
3921− pypillowfight = buildPythonPackage rec {
3922− name = "pypillowfight-${version}";
3923− version = "0.2.1";
3924−
3925− src = pkgs.fetchFromGitHub {
3926− owner = "jflesch";
3927− repo = "libpillowfight";
3928− rev = version;
3929− sha256 = "1rwmajsy9qhl3qhhy5mw0xmr3n8abxcq8baidpn0sxv6yjg2369z";
3930− };
3931−
3932− # Disable tests because they're designed to only work on Debian:
3933− # https://github.com/jflesch/libpillowfight/issues/2#issuecomment-268259174
3934− doCheck = false;
3935−
3936− # Python 2.x is not supported, see:
3937− # https://github.com/jflesch/libpillowfight/issues/1
3938− disabled = !isPy3k && !isPyPy;
3939−
3940− # This is needed by setup.py regardless of whether tests are enabled.
3941− buildInputs = [ self.nose ];
3942− propagatedBuildInputs = [ self.pillow ];
3943−
3944− meta = {
3945− description = "Library containing various image processing algorithms";
3946− homepage = "https://github.com/jflesch/libpillowfight";
3947− license = licenses.gpl3Plus;
3948− };
3949− };
3921+ pypillowfight = callPackage ../development/python-modules/pypillowfight { };
39503922
39513923 pyprind = callPackage ../development/python-modules/pyprind { };
39523924