about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pep257.nix
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2017-01-31 22:11:36 +0100
committerLancelot SIX <lsix@lancelotsix.com>2017-01-31 22:39:22 +0100
commit7680786f9063af59ecf203149f7c8c330071239a (patch)
treec57188cb44eca7d2d726aa78e03d7da9eb71d227 /pkgs/development/python-modules/pep257.nix
parent887590e1d260bb5fba8ca1c5861d69b5987723ab (diff)
downloadnixlib-7680786f9063af59ecf203149f7c8c330071239a.tar
nixlib-7680786f9063af59ecf203149f7c8c330071239a.tar.gz
nixlib-7680786f9063af59ecf203149f7c8c330071239a.tar.bz2
nixlib-7680786f9063af59ecf203149f7c8c330071239a.tar.lz
nixlib-7680786f9063af59ecf203149f7c8c330071239a.tar.xz
nixlib-7680786f9063af59ecf203149f7c8c330071239a.tar.zst
nixlib-7680786f9063af59ecf203149f7c8c330071239a.zip
pythonPackages.pep257: 0.3.2 -> 0.7.0
Diffstat (limited to 'pkgs/development/python-modules/pep257.nix')
-rw-r--r--pkgs/development/python-modules/pep257.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pep257.nix b/pkgs/development/python-modules/pep257.nix
new file mode 100644
index 000000000000..f185019b0f7a
--- /dev/null
+++ b/pkgs/development/python-modules/pep257.nix
@@ -0,0 +1,23 @@
+{ stdenv, buildPythonPackage, fetchurl, pytest, mock }:
+buildPythonPackage rec {
+  name = "pep257-${version}";
+  version = "0.7.0";
+
+  src = fetchurl {
+    url = "https://github.com/GreenSteam/pep257/archive/${version}.tar.gz";
+    sha256 = "1ldpgil0kaf6wz5gvl9xdx35a62vc6bmgi3wbh9320dj5v2qk4wh";
+  };
+
+  buildInputs = [ pytest mock ];
+
+  checkPhase = ''
+    py.test
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/GreenSteam/pep257/;
+    description = "Python docstring style checker";
+    longDescription = "Static analysis tool for checking compliance with Python PEP 257.";
+    lecense = licenses.mit;
+  };
+}