tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.requirements-detector: 0.7 -> 1.0.3
Fabian Affolter
3 years ago
6895219b
2a8f8957
+28
-19
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
requirements-detector
default.nix
+28
-19
pkgs/development/python-modules/requirements-detector/default.nix
reviewed
···
1
1
-
{ buildPythonPackage
2
2
-
, fetchFromGitHub
3
3
-
, isPy27
4
4
-
, lib
5
5
-
6
6
-
# pythonPackages
1
1
+
{ lib
7
2
, astroid
8
8
-
, pytest
3
3
+
, buildPythonPackage
4
4
+
, fetchFromGitHub
5
5
+
, packaging
6
6
+
, poetry-core
7
7
+
, poetry-semver
8
8
+
, pytestCheckHook
9
9
+
, pythonOlder
10
10
+
, toml
9
11
}:
10
12
11
13
buildPythonPackage rec {
12
14
pname = "requirements-detector";
13
13
-
version = "0.7";
14
14
-
disabled = isPy27;
15
15
+
version = "1.0.3";
16
16
+
format = "pyproject";
17
17
+
18
18
+
disabled = pythonOlder "3.7";
15
19
16
20
src = fetchFromGitHub {
17
21
owner = "landscapeio";
18
22
repo = pname;
19
23
rev = version;
20
20
-
sha256 = "sha256-DdPNqbTsL2+GUp8vppqUSa0mUVMxk73MCcpwo8u51tU=";
24
24
+
hash = "sha256-AEXCguf5Q9lU5ygFJUlbc1F637hkQ0wJybbRK7uhB9s=";
21
25
};
26
26
+
27
27
+
nativeBuildInputs = [
28
28
+
poetry-core
29
29
+
];
22
30
23
31
propagatedBuildInputs = [
24
32
astroid
33
33
+
packaging
34
34
+
poetry-semver
35
35
+
toml
25
36
];
26
37
27
38
checkInputs = [
28
28
-
pytest
39
39
+
pytestCheckHook
29
40
];
30
41
31
31
-
checkPhase = ''
32
32
-
pytest
33
33
-
'';
42
42
+
pythonImportsCheck = [
43
43
+
"requirements_detector"
44
44
+
];
34
45
35
35
-
meta = {
46
46
+
meta = with lib; {
36
47
description = "Python tool to find and list requirements of a Python project";
37
48
homepage = "https://github.com/landscapeio/requirements-detector";
38
38
-
license = lib.licenses.mit;
39
39
-
maintainers = with lib.maintainers; [
40
40
-
kamadorueda
41
41
-
];
49
49
+
license = licenses.mit;
50
50
+
maintainers = with maintainers; [ kamadorueda ];
42
51
};
43
52
}