aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/pytest-flakes
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/development/python-modules/pytest-flakes
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pytest-flakes')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pytest-flakes/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pytest-flakes/default.nix b/nixpkgs/pkgs/development/python-modules/pytest-flakes/default.nix
new file mode 100644
index 00000000000..df7981e6bfc
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/pytest-flakes/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, buildPythonPackage, fetchPypi
+, pytestpep8, pytest, pyflakes }:
+
+buildPythonPackage rec {
+ pname = "pytest-flakes";
+ version = "4.0.0";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "341964bf5760ebbdde9619f68a17d5632c674c3f6903ef66daa0a4f540b3d143";
+ };
+
+ checkInputs = [ pytestpep8 pytest ];
+ nativeBuildInputs = [ pytest ];
+ propagatedBuildInputs = [ pyflakes ];
+
+ # disable one test case that looks broken
+ checkPhase = ''
+ py.test test_flakes.py -k 'not test_syntax_error'
+ '';
+
+ meta = with stdenv.lib; {
+ license = licenses.mit;
+ homepage = https://pypi.python.org/pypi/pytest-flakes;
+ description = "pytest plugin to check source code with pyflakes";
+ };
+}