1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 hypothesis,
7 pythonOlder,
8 pytestCheckHook,
9 pytest-cov-stub,
10}:
11
12buildPythonPackage rec {
13 pname = "pyisbn";
14 version = "1.3.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-cPVjgXlps/8IUGieULx/917puGXD+A+DWWSxMGxO1Rk=";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeCheckInputs = [
27 hypothesis
28 pytestCheckHook
29 pytest-cov-stub
30 ];
31
32 pythonImportsCheck = [ "pyisbn" ];
33
34 meta = with lib; {
35 description = "Python module for working with 10- and 13-digit ISBNs";
36 homepage = "https://github.com/JNRowe/pyisbn";
37 license = licenses.gpl3Plus;
38 maintainers = with maintainers; [ eigengrau ];
39 };
40}