summary refs log tree commit diff
path: root/pkgs/development/python-modules/pep257/default.nix
blob: e9cba70e63179c8a22384fb0cae27a5f5fb15854 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, buildPythonPackage, fetchurl, pytest, mock }:
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
  '';

  meta = with lib; {
    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;
  };
}