Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 35 lines 808 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy3k 2, mock 3, pytest 4, pytestpep8 5, snowballstemmer 6}: 7 8buildPythonPackage rec { 9 pname = "pydocstyle"; 10 version = "4.0.1"; 11 disabled = !isPy3k; 12 13 src = fetchFromGitHub { 14 owner = "PyCQA"; 15 repo = pname; 16 rev = version; 17 sha256 = "1sr8d2fsfpam4f14v4als6g2v6s3n9h138vxlwhd6slb3ll14y4l"; 18 }; 19 20 propagatedBuildInputs = [ snowballstemmer ]; 21 22 checkInputs = [ pytest pytestpep8 mock ]; 23 24 checkPhase = '' 25 # test_integration.py installs packages via pip 26 py.test --pep8 --cache-clear -vv src/tests -k "not test_integration" 27 ''; 28 29 meta = with lib; { 30 description = "Python docstring style checker"; 31 homepage = https://github.com/PyCQA/pydocstyle/; 32 license = licenses.mit; 33 maintainers = with maintainers; [ dzabraev ]; 34 }; 35}