1 { lib, buildPythonPackage, fetchFromGitLab, nose, pillow
4 buildPythonPackage rec {
5 pname = "pypillowfight";
8 src = fetchFromGitLab {
9 domain = "gitlab.gnome.org";
11 owner = "OpenPaperwork";
12 repo = "libpillowfight";
14 sha256 = "096242v425mlqqj5g1giy59p7grxp05g78w6bk37vzph98jrgv3w";
18 echo '#define INTERNAL_PILLOWFIGHT_VERSION "${version}"' > src/pillowfight/_version.h
21 # Disable tests because they're designed to only work on Debian:
22 # https://github.com/jflesch/libpillowfight/issues/2#issuecomment-268259174
25 # Python 2.x is not supported, see:
26 # https://github.com/jflesch/libpillowfight/issues/1
27 disabled = !isPy3k && !isPyPy;
29 # This is needed by setup.py regardless of whether tests are enabled.
30 buildInputs = [ nose ];
31 propagatedBuildInputs = [ pillow ];
34 description = "Library containing various image processing algorithms";
35 inherit (src.meta) homepage;
36 license = licenses.gpl3Plus;