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