nixpkgs-suyu/pkgs/development/python-modules/isbnlib/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

43 lines
804 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, nose
, coverage
, pythonOlder
}:
buildPythonPackage rec {
pname = "isbnlib";
version = "3.10.12";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-FOZNsZK8PTPJhK0BvGQiPqCr8au3rwHsjE3dCKWGtDM=";
};
nativeCheckInputs = [
nose
coverage
];
# requires network connection
doCheck = false;
pythonImportsCheck = [
"isbnlib"
"isbnlib.config"
"isbnlib.dev"
"isbnlib.dev.helpers"
"isbnlib.registry"
];
meta = with lib; {
description = "Extract, clean, transform, hyphenate and metadata for ISBNs";
homepage = "https://github.com/xlcnd/isbnlib";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}