git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39815 from jluttine/pytest-flake8-1.0.1

pythonPackages.pytest-flake8: 1.0.0 -> 1.0.1

commit166282e8264225467d9e1862ee5d8fdd68e8dfb1 authorRobert Schütz <rschuetz17@gmail.com> dateWed 2 May 2018, 15:17 (9 years ago) parentdaef03511a244a
4 files changed+6−36
pkgs/development/python-modules/keyring/default.nix+1−3 pkgs/development/python-modules/pytest-flake8/default.nix+2−2 pkgs/tools/security/vulnix/default.nix+3−8 pkgs/tools/security/vulnix/disable-flake8.patch−23
pkgs/development/python-modules/keyring/default.nix+1−3
@@ -17,9 +17,7 @@ buildPythonPackage rec {
1717
1818 propagatedBuildInputs = [ entrypoints ] ++ stdenv.lib.optional stdenv.isLinux secretstorage;
1919
20− # all tests with flake8 are broken right now
21− # https://github.com/tholo/pytest-flake8/issues/45
22− doCheck = false;
20+ doCheck = !stdenv.isDarwin;
2321
2422 checkPhase = ''
2523 py.test
pkgs/development/python-modules/pytest-flake8/default.nix+2−2
@@ -2,7 +2,7 @@
22
33buildPythonPackage rec {
44 pname = "pytest-flake8";
5− version = "1.0.0";
5+ version = "1.0.1";
66
77 # although pytest is a runtime dependency, do not add it as
88 # propagatedBuildInputs in order to allow packages depend on another version
@@ -12,7 +12,7 @@ buildPythonPackage rec {
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "01driw4sc6nfi3m3ii7d074pxi3h1h4mbiyad9crg5i1l5jxx5ir";
15+ sha256 = "0s5fdivrmhjf6ybr6m2qb1h8hndv2jh2ir29qv36lhy9b7sc9kg5";
1616 };
1717
1818 checkPhase = ''
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',