nixpkgs/pkgs/development/python-modules/pydocstyle/default.nix
Drew Risinger 6bb2eae2ff treewide: remove dead pytestpep8 references
pytestpep8 was removed in 25c9946f95.
This removes pytestpep8 in the rest of the tree, where it was hardly
used.
2020-12-10 21:14:42 -05:00

35 lines
779 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, mock
, pytest
, snowballstemmer
}:
buildPythonPackage rec {
pname = "pydocstyle";
version = "5.0.2";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "PyCQA";
repo = pname;
rev = version;
sha256 = "03z8miyppm2xncrc9yjilwl7z5c5cpv51zha580v64p8sb2l0j7j";
};
propagatedBuildInputs = [ snowballstemmer ];
checkInputs = [ pytest mock ];
checkPhase = ''
# test_integration.py installs packages via pip
py.test --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 ];
};
}