summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyroma/default.nix
blob: 03eea0b8b5e94c4b8acba95d14ba83344b231ceb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, buildPythonPackage
, fetchFromGitHub
, docutils
, pygments
, setuptools
, requests
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pyroma";
  version = "3.2";

  src = fetchFromGitHub {
    owner = "regebro";
    repo = pname;
    rev = version;
    sha256 = "0ln9w984n48nyxwzd1y48l6b18lnv52radcyizaw56lapcgxrzdr";
  };

  propagatedBuildInputs = [
    docutils
    pygments
    setuptools
    requests
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pytestFlagsArray = [ "pyroma/tests.py" ];

  disabledTests = [
    # PyPI tests require network access
    "PyPITest"
  ];

  pythonImportsCheck = [ "pyroma" ];

  meta = with lib; {
    description = "Test your project's packaging friendliness";
    homepage = "https://github.com/regebro/pyroma";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}