blob: f58515679e1f1c327129c47fec6a8a7a0da5100f (
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, git
, mock
, pep440
, pytestCheckHook
, pythonOlder
, setuptools-scm
, six
}:
buildPythonPackage rec {
pname = "setupmeta";
version = "3.3.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "codrsquad";
repo = pname;
rev = "v${version}";
sha256 = "sha256-kX7S5NSqO1LDRkfBHaNfTjzW+l0Pd+5KvQHiNF3eH/M=";
};
preBuild = ''
export PYGRADLE_PROJECT_VERSION=${version};
'';
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
git
mock
pep440
pytestCheckHook
six
];
preCheck = ''
unset PYGRADLE_PROJECT_VERSION
'';
disabledTests = [
# Tests want to scan site-packages
"test_check_dependencies"
"test_clean"
"test_scenario"
"test_git_versioning"
];
pythonImportsCheck = [
"setupmeta"
];
meta = with lib; {
description = "Python module to simplify setup.py files";
homepage = "https://github.com/codrsquad/setupmeta";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|