Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyroma / default.nix
blob51816799034f9ef725520e49855041bd2d3939dd
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonAtLeast
6 # build-system
7 , setuptools
9 # dependencies
10 , build
11 , docutils
12 , flit-core
13 , packaging
14 , pygments
15 , requests
16 , trove-classifiers
18 # test
19 , pytestCheckHook
22 buildPythonPackage rec {
23   pname = "pyroma";
24   version = "4.2";
25   pyproject = true;
27   # https://github.com/regebro/pyroma/issues/104
28   disabled = pythonAtLeast "3.12";
30   src = fetchFromGitHub {
31     owner = "regebro";
32     repo = "pyroma";
33     rev = version;
34     sha256 = "sha256-ElSw+bY6fbHJPTX7O/9JZ4drttfbUQsU/fv3Cqqb/J4=";
35   };
37   propagatedBuildInputs = [
38     build
39     docutils
40     flit-core
41     packaging
42     pygments
43     setuptools
44     requests
45     trove-classifiers
46   ];
48   nativeCheckInputs = [
49     pytestCheckHook
50   ];
52   disabledTests = [
53     # tries to reach pypi
54     "test_complete"
55     "test_distribute"
56   ];
58   pythonImportsCheck = [ "pyroma" ];
60   meta = with lib; {
61     description = "Test your project's packaging friendliness";
62     mainProgram = "pyroma";
63     homepage = "https://github.com/regebro/pyroma";
64     license = licenses.mit;
65     maintainers = with maintainers; [ kamadorueda ];
66   };