Merge pull request from fabaff/shtab-bump

python311Packages.shtab: 1.6.1 -> 1.6.2
This commit is contained in:
Fabian Affolter 2023-06-16 07:39:11 +02:00 committed by GitHub
commit 4ef00e7f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,14 +4,15 @@
, pytest-timeout
, pytestCheckHook
, pythonOlder
, setuptools
, setuptools-scm
, bashInteractive
}:
buildPythonPackage rec {
pname = "shtab";
version = "1.6.1";
format = "setuptools";
version = "1.6.2";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -19,12 +20,18 @@ buildPythonPackage rec {
owner = "iterative";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-5qjavFzwFH75SlTQxxhMoJjBRIjGz9oogdvSw9dkjz0=";
hash = "sha256-qhWkUprDEFRvb9/0dGWBjyIFQY08sAqFSl5jYGtN6Z8=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=shtab --cov-report=term-missing --cov-report=xml" ""
'';
nativeBuildInputs = [
setuptools
setuptools-scm
];
@ -34,11 +41,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=shtab --cov-report=term-missing --cov-report=xml" ""
'';
pythonImportsCheck = [
"shtab"
];