From 1d8eaba0c1003e17622eab29ea389c4e5819dec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Reu=C3=9Fe?= Date: Thu, 7 Jul 2022 09:24:41 +0200 Subject: [PATCH] python310Packages.pyisbn: init at 1.3.1 --- .../python-modules/pyisbn/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/pyisbn/default.nix diff --git a/pkgs/development/python-modules/pyisbn/default.nix b/pkgs/development/python-modules/pyisbn/default.nix new file mode 100644 index 000000000000..7e2be12fd259 --- /dev/null +++ b/pkgs/development/python-modules/pyisbn/default.nix @@ -0,0 +1,37 @@ +{ buildPythonPackage +, fetchPypi +, hypothesis +, pythonOlder +, pytestCheckHook +, lib +, pytest +}: + +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 = [ pytestCheckHook hypothesis ]; + + pythonImportsCheck = [ "pyisbn" ]; + + meta = with lib; { + license = licenses.gpl3Plus; + homepage = "https://github.com/JNRowe/pyisbn"; + description = "Python module for working with 10- and 13-digit ISBNs"; + maintainers = with maintainers; [ eigengrau ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7cb622c1c02a..b6304567c942 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7748,6 +7748,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 { };