blob: 51816799034f9ef725520e49855041bd2d3939dd (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonAtLeast
# build-system
, setuptools
# dependencies
, build
, docutils
, flit-core
, packaging
, pygments
, requests
, trove-classifiers
# test
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyroma";
version = "4.2";
pyproject = true;
# https://github.com/regebro/pyroma/issues/104
disabled = pythonAtLeast "3.12";
src = fetchFromGitHub {
owner = "regebro";
repo = "pyroma";
rev = version;
sha256 = "sha256-ElSw+bY6fbHJPTX7O/9JZ4drttfbUQsU/fv3Cqqb/J4=";
};
propagatedBuildInputs = [
build
docutils
flit-core
packaging
pygments
setuptools
requests
trove-classifiers
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# tries to reach pypi
"test_complete"
"test_distribute"
];
pythonImportsCheck = [ "pyroma" ];
meta = with lib; {
description = "Test your project's packaging friendliness";
mainProgram = "pyroma";
homepage = "https://github.com/regebro/pyroma";
license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ];
};
}
|