3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackges.pilkit: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 09:41:37 -04:00
parent ac2e2a3d38
commit 60222bc31b
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 37 additions and 21 deletions

View file

@ -0,0 +1,36 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pillow
, nose_progressive
, nose
, mock
, blessings
}:
buildPythonPackage rec {
pname = "pilkit";
version = "1.1.4";
src = fetchPypi {
inherit pname version;
sha256 = "e00585f5466654ea2cdbf7decef9862cb00e16fd363017fa7ef6623a16b0d2c7";
};
preConfigure = ''
substituteInPlace setup.py --replace 'nose==1.2.1' 'nose'
'';
# tests fail, see https://github.com/matthewwithanm/pilkit/issues/9
doCheck = false;
buildInputs = [ pillow nose_progressive nose mock blessings ];
meta = with stdenv.lib; {
homepage = http://github.com/matthewwithanm/pilkit/;
description = "A collection of utilities and processors for the Python Imaging Libary";
license = licenses.bsd0;
maintainers = with maintainers; [ domenkozar ];
};
}

View file

@ -3807,27 +3807,7 @@ in {
sympy = callPackage ../development/python-modules/sympy { };
pilkit = buildPythonPackage rec {
name = "pilkit-1.1.4";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pilkit/${name}.tar.gz";
sha256 = "e00585f5466654ea2cdbf7decef9862cb00e16fd363017fa7ef6623a16b0d2c7";
};
preConfigure = ''
substituteInPlace setup.py --replace 'nose==1.2.1' 'nose'
'';
# tests fail, see https://github.com/matthewwithanm/pilkit/issues/9
doCheck = false;
buildInputs = with self; [ pillow nose_progressive nose mock blessings ];
meta = {
maintainers = with maintainers; [ domenkozar ];
};
};
pilkit = callPackage ../development/python-modules/pilkit { };
clint = buildPythonPackage rec {
name = "clint-0.5.1";