forked from mirrors/nixpkgs
python310Packages.clize: remove postPatch
- disable on older Python releases
This commit is contained in:
parent
b362f100ac
commit
0492580bef
|
@ -1,24 +1,15 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
|
|
||||||
# build
|
|
||||||
, setuptools
|
|
||||||
|
|
||||||
# propagtes
|
|
||||||
, sigtools
|
|
||||||
, six
|
|
||||||
, attrs
|
, attrs
|
||||||
, od
|
, buildPythonPackage
|
||||||
, docutils
|
, docutils
|
||||||
|
, fetchPypi
|
||||||
# extras: datetime
|
, od
|
||||||
, python-dateutil
|
|
||||||
|
|
||||||
# tests
|
|
||||||
, pygments
|
, pygments
|
||||||
, unittest2
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, python-dateutil
|
||||||
|
, setuptools
|
||||||
|
, sigtools
|
||||||
|
, unittest2
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -26,17 +17,13 @@ buildPythonPackage rec {
|
||||||
version = "5.0.0";
|
version = "5.0.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-/cFpEvAN/Movd38xaE53Y+D9EYg/SFyHeqtlVUo1D0I=";
|
hash = "sha256-/cFpEvAN/Movd38xaE53Y+D9EYg/SFyHeqtlVUo1D0I=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "docutils ~= 0.17.0" "docutils" \
|
|
||||||
--replace "attrs>=19.1.0,<22" "attrs>=19.1.0"
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
@ -46,7 +33,6 @@ buildPythonPackage rec {
|
||||||
docutils
|
docutils
|
||||||
od
|
od
|
||||||
sigtools
|
sigtools
|
||||||
six
|
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
passthru.optional-dependencies = {
|
||||||
|
@ -65,7 +51,9 @@ buildPythonPackage rec {
|
||||||
unittest2
|
unittest2
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "clize" ];
|
pythonImportsCheck = [
|
||||||
|
"clize"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command-line argument parsing for Python";
|
description = "Command-line argument parsing for Python";
|
||||||
|
|
Loading…
Reference in a new issue