1{ lib
2, buildPythonPackage
3, fetchPypi
4, pillow
5, nose_progressive
6, nose
7, mock
8, blessings
9}:
10
11buildPythonPackage rec {
12 pname = "pilkit";
13 version = "2.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "ddb30c2f0198a147e56b151476c3bb9fe045fbfd5b0a0fa2a3148dba62d1559f";
18 };
19
20 preConfigure = ''
21 substituteInPlace setup.py --replace 'nose==1.2.1' 'nose'
22 '';
23
24 # tests fail, see https://github.com/matthewwithanm/pilkit/issues/9
25 doCheck = false;
26
27 buildInputs = [ pillow nose_progressive nose mock blessings ];
28
29 meta = with lib; {
30 homepage = "https://github.com/matthewwithanm/pilkit/";
31 description = "A collection of utilities and processors for the Python Imaging Libary";
32 license = licenses.bsd0;
33 maintainers = with maintainers; [ domenkozar ];
34 };
35
36}