nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 hypothesis,
7 pytestCheckHook,
8 pytest-cov-stub,
9}:
10
11buildPythonPackage rec {
12 pname = "pyisbn";
13 version = "1.3.1";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-cPVjgXlps/8IUGieULx/917puGXD+A+DWWSxMGxO1Rk=";
19 };
20
21 build-system = [ setuptools ];
22
23 nativeCheckInputs = [
24 hypothesis
25 pytestCheckHook
26 pytest-cov-stub
27 ];
28
29 pythonImportsCheck = [ "pyisbn" ];
30
31 meta = {
32 description = "Python module for working with 10- and 13-digit ISBNs";
33 homepage = "https://github.com/JNRowe/pyisbn";
34 license = lib.licenses.gpl3Plus;
35 maintainers = with lib.maintainers; [ eigengrau ];
36 };
37}