Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pythonPackages.pydocstyle: freeze at 2.1.1

authored by Jonathan Ringer and committed by Jon 5c47b6b0 31a9f6a3

+38 -1
+33
pkgs/development/python-modules/pydocstyle/2.nix
···
··· 1 + { lib, buildPythonPackage, fetchFromGitHub, isPy3k, pythonOlder 2 + , snowballstemmer, six, configparser 3 + , pytest, pytestpep8, mock, pathlib }: 4 + 5 + buildPythonPackage rec { 6 + pname = "pydocstyle"; 7 + version = "2.1.1"; 8 + 9 + # no tests on PyPI 10 + # https://github.com/PyCQA/pydocstyle/issues/302 11 + src = fetchFromGitHub { 12 + owner = "PyCQA"; 13 + repo = pname; 14 + rev = version; 15 + sha256 = "1h0k8lpx14svc8dini62j0kqiam10pck5sdzvxa4xhsx7y689g5l"; 16 + }; 17 + 18 + propagatedBuildInputs = [ snowballstemmer six ] ++ lib.optional (!isPy3k) configparser; 19 + 20 + checkInputs = [ pytest pytestpep8 mock ] ++ lib.optional (pythonOlder "3.4") pathlib; 21 + 22 + checkPhase = '' 23 + # test_integration.py installs packages via pip 24 + py.test --pep8 --cache-clear -vv src/tests -k "not test_integration" 25 + ''; 26 + 27 + meta = with lib; { 28 + description = "Python docstring style checker"; 29 + homepage = https://github.com/PyCQA/pydocstyle/; 30 + license = licenses.mit; 31 + maintainers = with maintainers; [ dzabraev ]; 32 + }; 33 + }
+5 -1
pkgs/top-level/python-packages.nix
··· 954 955 pydbus = callPackage ../development/python-modules/pydbus { }; 956 957 - pydocstyle = callPackage ../development/python-modules/pydocstyle { }; 958 959 pydocumentdb = callPackage ../development/python-modules/pydocumentdb { }; 960
··· 954 955 pydbus = callPackage ../development/python-modules/pydbus { }; 956 957 + pydocstyle = 958 + if isPy27 then 959 + callPackage ../development/python-modules/pydocstyle/2.nix { } 960 + else 961 + callPackage ../development/python-modules/pydocstyle { }; 962 963 pydocumentdb = callPackage ../development/python-modules/pydocumentdb { }; 964