1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hypothesis,
6 pythonOlder,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pyisbn";
12 version = "1.3.1";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "06fm9rn31cb4b61hzy63cnwfjpppgyy517k8a04gzcv9g60n7xbh";
20 };
21
22 postPatch = ''
23 substituteInPlace setup.cfg \
24 --replace "--cov pyisbn --cov-report term-missing --no-cov-on-fail" ""
25 '';
26
27 nativeCheckInputs = [
28 hypothesis
29 pytestCheckHook
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}