git.iko.soy/typeable/nixpkgs
on master help sign in
vulnix: drop obsolete patch
commit11a244afdb68b01724a6238d84c9ed3ca701a54c authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de> dateWed 2 May 2018, 15:09 (9 years ago) parentc64676a
2 files changed+3−31
pkgs/tools/security/vulnix/default.nix+3−8 pkgs/tools/security/vulnix/disable-flake8.patch−23
pkgs/tools/security/vulnix/default.nix+3−8
@@ -9,9 +9,9 @@ pythonPackages.buildPythonApplication rec {
99 sha256 = "0j6v6phq3naqnpvzxxnynsyv9y7bhig1gzvg594qpknqgyzj16bf";
1010 };
1111
12− buildInputs =
13− [ ronn ] ++
14− (with pythonPackages; [ freezegun pytest pytestcov ]);
12+ buildInputs = [ ronn ];
13+
14+ checkInputs = with pythonPackages; [ freezegun pytest pytestcov pytest-flake8 ];
1515
1616 propagatedBuildInputs = [
1717 nix
@@ -27,11 +27,6 @@ pythonPackages.buildPythonApplication rec {
2727
2828 outputs = [ "out" "doc" ];
2929
30− # pytest-flake8 is currently broken
31− # re-enable after it has been fixed
32− # https://github.com/NixOS/nixpkgs/issues/39206
33− patches = [ ./disable-flake8.patch ];
34−
3530 postBuild = ''
3631 make -C doc
3732 '';
pkgs/tools/security/vulnix/disable-flake8.patchdeleted−23
@@ -1,23 +0,0 @@
1−diff --git a/setup.cfg b/setup.cfg
2−index a9e37ce..41b9886 100644
3−--- a/setup.cfg
4−+++ b/setup.cfg
5−@@ -1,5 +1,5 @@
6− [tool:pytest]
7−-addopts = --flake8 --tb=native --cov=src --cov-report=html --junitxml=report.xml -m 'not jenkinsonly' src/vulnix
8−+addopts = --tb=native --cov=src --cov-report=html --junitxml=report.xml -m 'not jenkinsonly' src/vulnix
9− markers = slow: This is a non-unit test and thus is not run by default. Use ``-m slow`` to run these, or ``-m 1`` to run all tests.
10−
11− [aliases]
12−diff --git a/setup.py b/setup.py
13−index a9315e5..d14ad59 100644
14−--- a/setup.py
15−+++ b/setup.py
16−@@ -35,7 +35,6 @@ setup(
17− 'freezegun>0.3',
18− 'pytest>=3.2',
19− 'pytest-cov>=2.5',
20−- 'pytest-flake8',
21− 'pytest-runner>=2.11,<3dev',
22− 'pytest-timeout>=1.2',
23− 'setuptools_scm>=1.15',