git.iko.soy/typeable/nixpkgs
on master help sign in
prospector: init at 1.2.0
commita892d9617d3936c64476a3bf3f2d59bdfbb1f96a authorKevin Amado <kamadorueda@gmail.com> dateFri 10 Jan 2020, 01:56 (7 years ago) parent3773e45
3 files changed+104
pkgs/development/tools/prospector/default.nix+74 pkgs/development/tools/prospector/setoptconf.nix+26 pkgs/top-level/all-packages.nix+4
pkgs/development/tools/prospector/default.nixnew file+74
@@ -0,0 +1,74 @@
1+{ lib
2+, pkgs
3+, python
4+}:
5+
6+let
7+ py = python.override {
8+ packageOverrides = self: super: {
9+ pep8-naming = super.pep8-naming.overridePythonAttrs(oldAttrs: rec {
10+ version = "0.4.1";
11+ src = oldAttrs.src.override {
12+ inherit version;
13+ sha256 = "0nhf8p37y008shd4f21bkj5pizv8q0l8cpagyyb8gr059d6gvvaf";
14+ };
15+ });
16+ };
17+ };
18+ setoptconf = py.pkgs.callPackage ./setoptconf.nix { };
19+in
20+
21+with py.pkgs;
22+
23+buildPythonApplication rec {
24+ pname = "prospector";
25+ version = "1.2.0";
26+ disabled = isPy27;
27+
28+ src = pkgs.fetchFromGitHub {
29+ owner = "PyCQA";
30+ repo = pname;
31+ rev = version;
32+ sha256 = "07kb37zrrsriqzcmli0ghx7qb1iwkzh83qsiikl9jy50faby2sjg";
33+ };
34+
35+ checkInputs = [
36+ pytest
37+ ];
38+
39+ checkPhase = ''
40+ pytest
41+ '';
42+
43+ patchPhase = ''
44+ substituteInPlace setup.py \
45+ --replace 'pycodestyle<=2.4.0' 'pycodestyle<=2.5.0'
46+ '';
47+
48+ propagatedBuildInputs = [
49+ astroid
50+ django
51+ dodgy
52+ mccabe
53+ pep8-naming
54+ pycodestyle
55+ pydocstyle
56+ pyflakes
57+ pylint
58+ pylint-celery
59+ pylint-django
60+ pylint-flask
61+ pyyaml
62+ requirements-detector
63+ setoptconf
64+ ];
65+
66+ meta = with lib; {
67+ description = "Tool to analyse Python code and output information about errors, potential problems, convention violations and complexity";
68+ homepage = "https://github.com/PyCQA/prospector";
69+ license = licenses.gpl2;
70+ maintainers = with maintainers; [
71+ kamadorueda
72+ ];
73+ };
74+}
pkgs/development/tools/prospector/setoptconf.nixnew file+26
@@ -0,0 +1,26 @@
1+{ buildPythonPackage
2+, fetchPypi
3+, lib
4+}:
5+
6+buildPythonPackage rec {
7+ pname = "setoptconf";
8+ version = "0.2.0";
9+
10+ src = fetchPypi {
11+ inherit pname version;
12+ sha256 = "177l7j68j751i781bgk6pfhxjj7hwqxzdm2ja5fkywbp0275s2sv";
13+ };
14+
15+ # Base tests provided via PyPi are broken
16+ doCheck = false;
17+
18+ meta = with lib; {
19+ homepage = "https://pypi.org/project/setoptconf";
20+ description = "A module for retrieving program settings from various sources in a consistant method";
21+ license = licenses.mit;
22+ maintainers = with maintainers; [
23+ kamadorueda
24+ ];
25+ };
26+}
pkgs/top-level/all-packages.nix+4
@@ -13653,6 +13653,10 @@ in
1365313653 buildPythonApplication click future six;
1365413654 };
1365513655
13656+ prospector = callPackage ../development/tools/prospector {
13657+ python = python37;
13658+ };
13659+
1365613660 protobuf = protobuf3_7;
1365713661
1365813662 protobuf3_11 = callPackage ../development/libraries/protobuf/3.11.nix { };