2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchurl, pytest, mock }:
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pep257";
|
|
|
|
version = "0.7.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/GreenSteam/pep257/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1ldpgil0kaf6wz5gvl9xdx35a62vc6bmgi3wbh9320dj5v2qk4wh";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/GreenSteam/pep257/";
|
|
|
|
description = "Python docstring style checker";
|
|
|
|
longDescription = "Static analysis tool for checking compliance with Python PEP 257.";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|