mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python3Packages.pydocstyle: 2.1.1 -> 4.0.1
This commit is contained in:
parent
5c47b6b0fd
commit
148e7726be
1 changed files with 11 additions and 9 deletions
|
@ -1,23 +1,25 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pythonOlder
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
|
||||||
, snowballstemmer, six, configparser
|
, mock
|
||||||
, pytest, pytestpep8, mock, pathlib }:
|
, pytest
|
||||||
|
, pytestpep8
|
||||||
|
, snowballstemmer
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pydocstyle";
|
pname = "pydocstyle";
|
||||||
version = "2.1.1";
|
version = "4.0.1";
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
# no tests on PyPI
|
|
||||||
# https://github.com/PyCQA/pydocstyle/issues/302
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "PyCQA";
|
owner = "PyCQA";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1h0k8lpx14svc8dini62j0kqiam10pck5sdzvxa4xhsx7y689g5l";
|
sha256 = "1sr8d2fsfpam4f14v4als6g2v6s3n9h138vxlwhd6slb3ll14y4l";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ snowballstemmer six ] ++ lib.optional (!isPy3k) configparser;
|
propagatedBuildInputs = [ snowballstemmer ];
|
||||||
|
|
||||||
checkInputs = [ pytest pytestpep8 mock ] ++ lib.optional (pythonOlder "3.4") pathlib;
|
checkInputs = [ pytest pytestpep8 mock ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
# test_integration.py installs packages via pip
|
# test_integration.py installs packages via pip
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue