mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
Merge pull request #196775 from r-ryantm/auto-update/python3.10-clize
python310Packages.clize: 4.2.1 -> 5.0.0
This commit is contained in:
commit
dc458ef9b4
@ -1,42 +1,30 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
|
||||
# build
|
||||
, setuptools
|
||||
|
||||
# propagtes
|
||||
, sigtools
|
||||
, six
|
||||
, attrs
|
||||
, od
|
||||
, buildPythonPackage
|
||||
, docutils
|
||||
|
||||
# extras: datetime
|
||||
, python-dateutil
|
||||
|
||||
# tests
|
||||
, fetchPypi
|
||||
, od
|
||||
, pygments
|
||||
, unittest2
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, python-dateutil
|
||||
, setuptools
|
||||
, sigtools
|
||||
, unittest2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "clize";
|
||||
version = "4.2.1";
|
||||
version = "5.0.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3177a028e4169d8865c79af82bdd441b24311d4bd9c0ae8803641882d340a51d";
|
||||
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 = [
|
||||
setuptools
|
||||
];
|
||||
@ -46,7 +34,6 @@ buildPythonPackage rec {
|
||||
docutils
|
||||
od
|
||||
sigtools
|
||||
six
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
@ -65,7 +52,9 @@ buildPythonPackage rec {
|
||||
unittest2
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "clize" ];
|
||||
pythonImportsCheck = [
|
||||
"clize"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command-line argument parsing for Python";
|
||||
|
Loading…
Reference in New Issue
Block a user