diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-03-12 09:40:49 +0100 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-03-12 11:06:16 +0100 |
commit | 6ee37e45f31065f864c672ad27b100dcdbc52b8c (patch) | |
tree | e8ecff0d4c17ace192b68388a1ceac7847595534 /pkgs/development/python-modules | |
parent | 1f5f9e74798c8b1743cd464e45f6746ed2a6fa7c (diff) | |
download | nixlib-6ee37e45f31065f864c672ad27b100dcdbc52b8c.tar nixlib-6ee37e45f31065f864c672ad27b100dcdbc52b8c.tar.gz nixlib-6ee37e45f31065f864c672ad27b100dcdbc52b8c.tar.bz2 nixlib-6ee37e45f31065f864c672ad27b100dcdbc52b8c.tar.lz nixlib-6ee37e45f31065f864c672ad27b100dcdbc52b8c.tar.xz nixlib-6ee37e45f31065f864c672ad27b100dcdbc52b8c.tar.zst nixlib-6ee37e45f31065f864c672ad27b100dcdbc52b8c.zip |
cffconvert: init at 2.0.0-unstable-2024-02-12
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/cffconvert/default.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cffconvert/default.nix b/pkgs/development/python-modules/cffconvert/default.nix new file mode 100644 index 000000000000..9ca8fb492e5e --- /dev/null +++ b/pkgs/development/python-modules/cffconvert/default.nix @@ -0,0 +1,64 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, click +, requests +, ruamel-yaml +, pykwalify +, jsonschema +, pytestCheckHook +, pytest-cov +}: + +buildPythonPackage rec { + pname = "cffconvert"; + version = "2.0.0-unstable-2024-02-12"; + pyproject = true; + + src = fetchFromGitHub { + owner = "citation-file-format"; + repo = "cffconvert"; + rev = "5295f87c0e261da61a7b919fc754e3a77edd98a7"; + hash = "sha256-/2qhWVNylrqPSf1KmuZQahzq+YH860cohVSfJsDm1BE="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + click + requests + ruamel-yaml + pykwalify + jsonschema + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + checkInputs = [ + # addopts uses --no-cov + pytest-cov + ]; + + disabledTestPaths = [ + # requires network access + "tests/cli/test_rawify_url.py" + ]; + + pythonImportsCheckHook = [ + "cffconvert" + ]; + + meta = { + changelog = "https://github.com/citation-file-format/cffconvert/blob/${src.rev}/CHANGELOG.md"; + description = "Command line program to validate and convert CITATION.cff files"; + homepage = "https://github.com/citation-file-format/cffconvert"; + license = lib.licenses.asl20; + mainProgram = "cffconvert"; + maintainers = with lib.maintainers; [ drupol ]; + }; +} |