python3Packages.pilkit: 2.0 -> unstable-2022-02-17
This commit is contained in:
parent
a6633d255f
commit
1e59f05167
|
@ -1,36 +1,48 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, pillow
|
|
||||||
, nose_progressive
|
|
||||||
, nose
|
|
||||||
, mock
|
, mock
|
||||||
, blessings
|
, pillow
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pilkit";
|
pname = "pilkit";
|
||||||
version = "2.0";
|
version = "unstable-2022-02-17";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.7";
|
||||||
inherit pname version;
|
|
||||||
sha256 = "ddb30c2f0198a147e56b151476c3bb9fe045fbfd5b0a0fa2a3148dba62d1559f";
|
src = fetchFromGitHub {
|
||||||
|
owner = "matthewwithanm";
|
||||||
|
repo = pname;
|
||||||
|
rev = "09ffa2ad33318ae5fd3464655c14c7f01ffc2097";
|
||||||
|
hash = "sha256-jtnFffKr0yhSv2jBmXzPa6iP2r41MbmGukfmnvgABhk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
preConfigure = ''
|
buildInputs = [
|
||||||
substituteInPlace setup.py --replace 'nose==1.2.1' 'nose'
|
pillow
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace tox.ini \
|
||||||
|
--replace " --cov --cov-report term-missing:skip-covered" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# tests fail, see https://github.com/matthewwithanm/pilkit/issues/9
|
pythonImportsCheck = [
|
||||||
doCheck = false;
|
"pilkit"
|
||||||
|
];
|
||||||
buildInputs = [ pillow nose_progressive nose mock blessings ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/matthewwithanm/pilkit/";
|
|
||||||
description = "A collection of utilities and processors for the Python Imaging Libary";
|
description = "A collection of utilities and processors for the Python Imaging Libary";
|
||||||
|
homepage = "https://github.com/matthewwithanm/pilkit/";
|
||||||
license = licenses.bsd0;
|
license = licenses.bsd0;
|
||||||
maintainers = with maintainers; [ domenkozar ];
|
maintainers = with maintainers; [ domenkozar ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue