2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
nose,
|
|
|
|
coverage,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "isbnlib";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "3.10.14";
|
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-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-lvkIZMd7AfVfoR5b/Kn9kJUB2YQvO8cQ1Oq4UZXZBTk=";
|
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";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/xlcnd/isbnlib/blob/v${version}/CHANGES.txt";
|
2021-04-13 19:44:15 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|