1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 nose,
6 coverage,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "isbnlib";
12 version = "3.10.14";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-lvkIZMd7AfVfoR5b/Kn9kJUB2YQvO8cQ1Oq4UZXZBTk=";
20 };
21
22 nativeCheckInputs = [
23 nose
24 coverage
25 ];
26
27 # requires network connection
28 doCheck = false;
29
30 pythonImportsCheck = [
31 "isbnlib"
32 "isbnlib.config"
33 "isbnlib.dev"
34 "isbnlib.dev.helpers"
35 "isbnlib.registry"
36 ];
37
38 meta = with lib; {
39 description = "Extract, clean, transform, hyphenate and metadata for ISBNs";
40 homepage = "https://github.com/xlcnd/isbnlib";
41 changelog = "https://github.com/xlcnd/isbnlib/blob/v${version}/CHANGES.txt";
42 license = licenses.lgpl3Plus;
43 maintainers = with maintainers; [ dotlambda ];
44 };
45}