1{ stdenv, buildPythonPackage, fetchurl, pytest, mock }: 2buildPythonPackage rec { 3 pname = "pep257"; 4 version = "0.7.0"; 5 6 src = fetchurl { 7 url = "https://github.com/GreenSteam/pep257/archive/${version}.tar.gz"; 8 sha256 = "1ldpgil0kaf6wz5gvl9xdx35a62vc6bmgi3wbh9320dj5v2qk4wh"; 9 }; 10 11 buildInputs = [ pytest mock ]; 12 13 checkPhase = '' 14 py.test 15 ''; 16 17 meta = with stdenv.lib; { 18 homepage = https://github.com/GreenSteam/pep257/; 19 description = "Python docstring style checker"; 20 longDescription = "Static analysis tool for checking compliance with Python PEP 257."; 21 license = licenses.mit; 22 }; 23}