summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-03-01 11:03:17 +0100
committerRobin Gloster <mail@glob.in>2018-03-01 14:43:12 +0100
commit13ac2ee2f6a19bb2f2e159906c34e1652139ed17 (patch)
tree5bd7649e8c0ba33e778b28372533fbe2b4d49b3b /pkgs/development/python-modules
parent0d9224bdc50272708d24a41970a484804a3773cd (diff)
downloadnixlib-13ac2ee2f6a19bb2f2e159906c34e1652139ed17.tar
nixlib-13ac2ee2f6a19bb2f2e159906c34e1652139ed17.tar.gz
nixlib-13ac2ee2f6a19bb2f2e159906c34e1652139ed17.tar.bz2
nixlib-13ac2ee2f6a19bb2f2e159906c34e1652139ed17.tar.lz
nixlib-13ac2ee2f6a19bb2f2e159906c34e1652139ed17.tar.xz
nixlib-13ac2ee2f6a19bb2f2e159906c34e1652139ed17.tar.zst
nixlib-13ac2ee2f6a19bb2f2e159906c34e1652139ed17.zip
pythonPackages.pydocstyle: correct propagatedBuildInputs
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/pydocstyle/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/pydocstyle/default.nix b/pkgs/development/python-modules/pydocstyle/default.nix
index fd1f0db0c1e5..bbad0f7a83bb 100644
--- a/pkgs/development/python-modules/pydocstyle/default.nix
+++ b/pkgs/development/python-modules/pydocstyle/default.nix
@@ -1,5 +1,6 @@
-{ stdenv, buildPythonPackage, fetchPypi, snowballstemmer, configparser,
-  pytest, pytestpep8, mock, pathlib }:
+{ lib, buildPythonPackage, fetchPypi, isPy3k
+, snowballstemmer, six, configparser
+, pytest, pytestpep8, mock, pathlib }:
 
 buildPythonPackage rec {
   pname = "pydocstyle";
@@ -10,11 +11,11 @@ buildPythonPackage rec {
     sha256 = "15ssv8l6cvrmzgwcdzw76rnl4np3qf0dbwr1wsx76y0hc7lwsnsd";
   };
 
-  propagatedBuildInputs = [ snowballstemmer configparser ];
+  propagatedBuildInputs = [ snowballstemmer six ] ++ lib.optional (!isPy3k) configparser;
 
   checkInputs = [ pytest pytestpep8 mock pathlib ];
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "Python docstring style checker";
     homepage = https://github.com/PyCQA/pydocstyle/;
     license = licenses.mit;