1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5, coverage
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "isbnlib";
11 version = "3.10.12";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-FOZNsZK8PTPJhK0BvGQiPqCr8au3rwHsjE3dCKWGtDM=";
19 };
20
21 checkInputs = [
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 license = licenses.lgpl3Plus;
41 maintainers = with maintainers; [ dotlambda ];
42 };
43}