Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 35 lines 792 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 = "5.0.2"; 11 disabled = !isPy3k; 12 13 src = fetchFromGitHub { 14 owner = "PyCQA"; 15 repo = pname; 16 rev = version; 17 sha256 = "03z8miyppm2xncrc9yjilwl7z5c5cpv51zha580v64p8sb2l0j7j"; 18 }; 19 20 propagatedBuildInputs = [ snowballstemmer ]; 21 22 checkInputs = [ pytest mock ]; 23 24 checkPhase = '' 25 # test_integration.py installs packages via pip 26 py.test --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}