Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / cffconvert / default.nix
blob9ca8fb492e5e044a43c6e062702ddcc79d68e7c1
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , click
6 , requests
7 , ruamel-yaml
8 , pykwalify
9 , jsonschema
10 , pytestCheckHook
11 , pytest-cov
14 buildPythonPackage rec {
15   pname = "cffconvert";
16   version = "2.0.0-unstable-2024-02-12";
17   pyproject = true;
19   src = fetchFromGitHub {
20     owner = "citation-file-format";
21     repo = "cffconvert";
22     rev = "5295f87c0e261da61a7b919fc754e3a77edd98a7";
23     hash = "sha256-/2qhWVNylrqPSf1KmuZQahzq+YH860cohVSfJsDm1BE=";
24   };
26   build-system = [
27     setuptools
28   ];
30   dependencies = [
31     click
32     requests
33     ruamel-yaml
34     pykwalify
35     jsonschema
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40   ];
42   checkInputs = [
43     # addopts uses --no-cov
44     pytest-cov
45   ];
47   disabledTestPaths = [
48     # requires network access
49     "tests/cli/test_rawify_url.py"
50   ];
52   pythonImportsCheckHook = [
53     "cffconvert"
54   ];
56   meta = {
57     changelog = "https://github.com/citation-file-format/cffconvert/blob/${src.rev}/CHANGELOG.md";
58     description = "Command line program to validate and convert CITATION.cff files";
59     homepage = "https://github.com/citation-file-format/cffconvert";
60     license = lib.licenses.asl20;
61     mainProgram = "cffconvert";
62     maintainers = with lib.maintainers; [ drupol ];
63   };