2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, coverage
|
2022-10-21 18:38:19 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "isbnlib";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "3.10.13";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-Rnk0H1ag35HGNeg4oiLOfxB1XLW8yVSOP3qK/1Z009Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
nose
|
|
|
|
coverage
|
|
|
|
];
|
|
|
|
|
|
|
|
# requires network connection
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"isbnlib"
|
|
|
|
"isbnlib.config"
|
|
|
|
"isbnlib.dev"
|
|
|
|
"isbnlib.dev.helpers"
|
|
|
|
"isbnlib.registry"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Extract, clean, transform, hyphenate and metadata for ISBNs";
|
|
|
|
homepage = "https://github.com/xlcnd/isbnlib";
|
2021-04-13 19:44:15 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|