tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
prospector: 1.2.0 -> 1.5.1
Martin Weinelt
4 years ago
e347db2f
a2da37b3
+30
-37
3 changed files
expand all
collapse all
unified
split
pkgs
development
tools
prospector
default.nix
setoptconf.nix
top-level
all-packages.nix
+25
-30
pkgs/development/tools/prospector/default.nix
···
1
1
{ lib
2
2
, pkgs
3
3
-
, python
3
3
+
, python3
4
4
}:
5
5
6
6
let
7
7
-
py = python.override {
8
8
-
packageOverrides = self: super: {
9
9
-
pep8-naming = super.pep8-naming.overridePythonAttrs(oldAttrs: rec {
10
10
-
version = "0.4.1";
11
11
-
src = oldAttrs.src.override {
12
12
-
inherit version;
13
13
-
sha256 = "0nhf8p37y008shd4f21bkj5pizv8q0l8cpagyyb8gr059d6gvvaf";
14
14
-
};
15
15
-
});
16
16
-
};
17
17
-
};
18
18
-
setoptconf = py.pkgs.callPackage ./setoptconf.nix { };
7
7
+
setoptconf-tmp = python3.pkgs.callPackage ./setoptconf.nix { };
19
8
in
20
9
21
21
-
with py.pkgs;
10
10
+
with python3.pkgs;
22
11
23
12
buildPythonApplication rec {
24
13
pname = "prospector";
25
25
-
version = "1.2.0";
26
26
-
disabled = isPy27;
14
14
+
version = "1.5.1";
15
15
+
format = "pyproject";
16
16
+
disabled = pythonOlder "3.6.1";
27
17
28
18
src = pkgs.fetchFromGitHub {
29
19
owner = "PyCQA";
30
20
repo = pname;
31
21
rev = version;
32
32
-
sha256 = "07kb37zrrsriqzcmli0ghx7qb1iwkzh83qsiikl9jy50faby2sjg";
22
22
+
sha256 = "17f822cxrvcvnrzdx1a9fyi9afljq80b6g6z1k2bqa1vs21gwv7l";
33
23
};
34
24
35
35
-
checkInputs = [
36
36
-
pytest
37
37
-
];
38
38
-
39
39
-
checkPhase = ''
40
40
-
pytest
25
25
+
postPatch = ''
26
26
+
substituteInPlace pyproject.toml \
27
27
+
--replace 'pep8-naming = ">=0.3.3,<=0.10.0"' 'pep8-naming = "*"'
41
28
'';
42
29
43
43
-
patchPhase = ''
44
44
-
substituteInPlace setup.py \
45
45
-
--replace 'pycodestyle<=2.4.0' 'pycodestyle<=2.5.0'
46
46
-
'';
30
30
+
nativeBuildInputs = [
31
31
+
poetry-core
32
32
+
];
47
33
48
34
propagatedBuildInputs = [
49
49
-
astroid
50
50
-
django
35
35
+
bandit
51
36
dodgy
52
37
mccabe
38
38
+
mypy
53
39
pep8-naming
54
40
pycodestyle
55
41
pydocstyle
···
58
44
pylint-celery
59
45
pylint-django
60
46
pylint-flask
47
47
+
pylint-plugin-utils
48
48
+
pyroma
61
49
pyyaml
62
50
requirements-detector
63
63
-
setoptconf
51
51
+
setoptconf-tmp
52
52
+
setuptools
53
53
+
toml
54
54
+
vulture
55
55
+
];
56
56
+
57
57
+
checkInputs = [
58
58
+
pytestCheckHook
64
59
];
65
60
66
61
meta = with lib; {
+4
-4
pkgs/development/tools/prospector/setoptconf.nix
···
4
4
}:
5
5
6
6
buildPythonPackage rec {
7
7
-
pname = "setoptconf";
8
8
-
version = "0.2.0";
7
7
+
pname = "setoptconf-tmp";
8
8
+
version = "0.3.1";
9
9
10
10
src = fetchPypi {
11
11
inherit pname version;
12
12
-
sha256 = "177l7j68j751i781bgk6pfhxjj7hwqxzdm2ja5fkywbp0275s2sv";
12
12
+
sha256 = "0y2pgpraa36wzlzkxigvmz80mqd3mzcc9wv2yx9bliqks7fhlj70";
13
13
};
14
14
15
15
# Base tests provided via PyPi are broken
16
16
doCheck = false;
17
17
18
18
meta = with lib; {
19
19
-
homepage = "https://pypi.org/project/setoptconf";
19
19
+
homepage = "https://pypi.org/project/setoptconf-tmp";
20
20
description = "A module for retrieving program settings from various sources in a consistant method";
21
21
license = licenses.mit;
22
22
maintainers = with maintainers; [
+1
-3
pkgs/top-level/all-packages.nix
···
18591
18591
buildPythonApplication click future six;
18592
18592
};
18593
18593
18594
18594
-
prospector = callPackage ../development/tools/prospector {
18595
18595
-
python = python37;
18596
18596
-
};
18594
18594
+
prospector = callPackage ../development/tools/prospector { };
18597
18595
18598
18596
protobuf = protobuf3_18;
18599
18597