3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #187566 from eigengrau/add-pyisbn

python310Packages.pyisbn: init at 1.3.1
This commit is contained in:
Fabian Affolter 2022-08-25 08:31:03 +02:00 committed by GitHub
commit 5f4f29e35e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, hypothesis
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyisbn";
version = "1.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "06fm9rn31cb4b61hzy63cnwfjpppgyy517k8a04gzcv9g60n7xbh";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov pyisbn --cov-report term-missing --no-cov-on-fail" ""
'';
checkInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [
"pyisbn"
];
meta = with lib; {
description = "Python module for working with 10- and 13-digit ISBNs";
homepage = "https://github.com/JNRowe/pyisbn";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ eigengrau ];
};
}

View file

@ -7776,6 +7776,8 @@ in {
pyiqvia = callPackage ../development/python-modules/pyiqvia { };
pyisbn = callPackage ../development/python-modules/pyisbn { };
pyjet = callPackage ../development/python-modules/pyjet { };
pyjks = callPackage ../development/python-modules/pyjks { };