2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-07-31 10:19:44 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-cov,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "isbnlib";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "3.10.14";
|
2024-07-31 10:19:44 +00:00
|
|
|
pyproject = true;
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xlcnd";
|
|
|
|
repo = "isbnlib";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-d6p0wv7kj+NOZJRE2rzQgb7PXv+E3tASIibYCjzCdx8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-07-31 10:19:44 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-cov
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "isbnlib/test/" ];
|
|
|
|
|
|
|
|
# All disabled tests require a network connection
|
|
|
|
disabledTests = [
|
|
|
|
"test_cache"
|
|
|
|
"test_editions_any"
|
|
|
|
"test_editions_merge"
|
|
|
|
"test_editions_thingl"
|
|
|
|
"test_editions_wiki"
|
|
|
|
"test_isbn_from_words"
|
|
|
|
"test_desc"
|
|
|
|
"test_cover"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"isbnlib/test/test_cache_decorator.py"
|
|
|
|
"isbnlib/test/test_goom.py"
|
|
|
|
"isbnlib/test/test_metadata.py"
|
|
|
|
"isbnlib/test/test_openl.py"
|
|
|
|
"isbnlib/test/test_rename.py"
|
|
|
|
"isbnlib/test/test_webservice.py"
|
|
|
|
"isbnlib/test/test_wiki.py"
|
|
|
|
"isbnlib/test/test_words.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|