mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
pythonPackages.pydocstyle: freeze at 2.1.1
This commit is contained in:
parent
31a9f6a341
commit
5c47b6b0fd
33
pkgs/development/python-modules/pydocstyle/2.nix
Normal file
33
pkgs/development/python-modules/pydocstyle/2.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pythonOlder
|
||||||
|
, snowballstemmer, six, configparser
|
||||||
|
, pytest, pytestpep8, mock, pathlib }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pydocstyle";
|
||||||
|
version = "2.1.1";
|
||||||
|
|
||||||
|
# no tests on PyPI
|
||||||
|
# https://github.com/PyCQA/pydocstyle/issues/302
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "PyCQA";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1h0k8lpx14svc8dini62j0kqiam10pck5sdzvxa4xhsx7y689g5l";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ snowballstemmer six ] ++ lib.optional (!isPy3k) configparser;
|
||||||
|
|
||||||
|
checkInputs = [ pytest pytestpep8 mock ] ++ lib.optional (pythonOlder "3.4") pathlib;
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
# test_integration.py installs packages via pip
|
||||||
|
py.test --pep8 --cache-clear -vv src/tests -k "not test_integration"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python docstring style checker";
|
||||||
|
homepage = https://github.com/PyCQA/pydocstyle/;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ dzabraev ];
|
||||||
|
};
|
||||||
|
}
|
@ -954,7 +954,11 @@ in {
|
|||||||
|
|
||||||
pydbus = callPackage ../development/python-modules/pydbus { };
|
pydbus = callPackage ../development/python-modules/pydbus { };
|
||||||
|
|
||||||
pydocstyle = callPackage ../development/python-modules/pydocstyle { };
|
pydocstyle =
|
||||||
|
if isPy27 then
|
||||||
|
callPackage ../development/python-modules/pydocstyle/2.nix { }
|
||||||
|
else
|
||||||
|
callPackage ../development/python-modules/pydocstyle { };
|
||||||
|
|
||||||
pydocumentdb = callPackage ../development/python-modules/pydocumentdb { };
|
pydocumentdb = callPackage ../development/python-modules/pydocumentdb { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user