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