summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-flakes
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2018-04-01 14:09:20 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2018-04-04 19:46:00 +0200
commite346024ce92b789428780652f3facbe4cdc45d69 (patch)
treeb1595c7abfd5c7e88ed9fbb0e0aeafa849b250e5 /pkgs/development/python-modules/pytest-flakes
parentf648930a0b3ad1afe9242fa1b342c6991d6c6367 (diff)
downloadnixlib-e346024ce92b789428780652f3facbe4cdc45d69.tar
nixlib-e346024ce92b789428780652f3facbe4cdc45d69.tar.gz
nixlib-e346024ce92b789428780652f3facbe4cdc45d69.tar.bz2
nixlib-e346024ce92b789428780652f3facbe4cdc45d69.tar.lz
nixlib-e346024ce92b789428780652f3facbe4cdc45d69.tar.xz
nixlib-e346024ce92b789428780652f3facbe4cdc45d69.tar.zst
nixlib-e346024ce92b789428780652f3facbe4cdc45d69.zip
pythonPackages.pytestflakes: Move to own file
Diffstat (limited to 'pkgs/development/python-modules/pytest-flakes')
-rw-r--r--pkgs/development/python-modules/pytest-flakes/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-flakes/default.nix b/pkgs/development/python-modules/pytest-flakes/default.nix
new file mode 100644
index 000000000000..ce6ed5b110b9
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-flakes/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, buildPythonPackage, fetchPypi
+, pytestpep8, pytest, pyflakes, pytestcache }:
+
+buildPythonPackage rec {
+  pname = "pytest-flakes";
+  version = "1.0.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0flag3n33kbhyjrhzmq990rvg4yb8hhhl0i48q9hw0ll89jp28lw";
+  };
+
+  buildInputs = [ pytestpep8 pytest ];
+  propagatedBuildInputs = [ pyflakes pytestcache ];
+
+  checkPhase = ''
+    py.test test_flakes.py
+  '';
+
+  meta = with stdenv.lib; {
+    license = licenses.mit;
+    homepage = https://pypi.python.org/pypi/pytest-flakes;
+    description = "pytest plugin to check source code with pyflakes";
+  };
+}