summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-flake8
diff options
context:
space:
mode:
authorJaakko Luttinen <jaakko.luttinen@iki.fi>2017-05-06 10:26:32 +0300
committerJaakko Luttinen <jaakko.luttinen@iki.fi>2017-05-06 12:57:49 +0300
commitcc51dd699d0d55562f5ecc1f190450674f3de975 (patch)
tree2f6f7feca58f3ecd086061e3d5e323c99b79e750 /pkgs/development/python-modules/pytest-flake8
parent37f59b3586c5a4d9f07c6aef7a9355a84691297a (diff)
downloadnixlib-cc51dd699d0d55562f5ecc1f190450674f3de975.tar
nixlib-cc51dd699d0d55562f5ecc1f190450674f3de975.tar.gz
nixlib-cc51dd699d0d55562f5ecc1f190450674f3de975.tar.bz2
nixlib-cc51dd699d0d55562f5ecc1f190450674f3de975.tar.lz
nixlib-cc51dd699d0d55562f5ecc1f190450674f3de975.tar.xz
nixlib-cc51dd699d0d55562f5ecc1f190450674f3de975.tar.zst
nixlib-cc51dd699d0d55562f5ecc1f190450674f3de975.zip
pythonPackages.pytest-flake8: init at 0.8.1
Diffstat (limited to 'pkgs/development/python-modules/pytest-flake8')
-rw-r--r--pkgs/development/python-modules/pytest-flake8/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-flake8/default.nix b/pkgs/development/python-modules/pytest-flake8/default.nix
new file mode 100644
index 000000000000..93883283627e
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-flake8/default.nix
@@ -0,0 +1,29 @@
+{lib, buildPythonPackage, fetchPypi, pytest, flake8}:
+
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  pname = "pytest-flake8";
+  version = "0.8.1";
+
+  # although pytest is a runtime dependency, do not add it as
+  # propagatedBuildInputs in order to allow packages depend on another version
+  # of pytest more easily
+  buildInputs = [ pytest ];
+  propagatedBuildInputs = [ flake8 ];
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1za5i09gz127yraigmcl443w6149714l279rmlfxg1bl2kdsc45a";
+  };
+
+  checkPhase = ''
+    pytest --ignore=nix_run_setup.py .
+  '';
+
+  meta = {
+    description = "py.test plugin for efficiently checking PEP8 compliance";
+    homepage = https://github.com/tholo/pytest-flake8;
+    maintainers = with lib.maintainers; [ jluttine ];
+    license = lib.licenses.bsd2;
+  };
+}