1{ lib, buildPythonPackage, fetchPypi, fetchpatch
2, mccabe, pycodestyle, pydocstyle, pyflakes
3, pytest, ipdb }:
4
5buildPythonPackage rec {
6 pname = "pylama";
7 version = "7.4.3";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "390c1dab1daebdf3d6acc923e551b035c3faa77d8b96b98530c230493f9ec712";
12 };
13
14 patches = fetchpatch {
15 url = "${meta.homepage}/pull/116.patch";
16 sha256 = "00jz5k2w0xahs1m3s603j6l4cwzz92qsbbk81fh17nq0f47999mv";
17 };
18
19 propagatedBuildInputs = [ mccabe pycodestyle pydocstyle pyflakes ];
20
21 checkInputs = [ pytest ipdb ];
22
23 # tries to mess with the file system
24 doCheck = false;
25
26 meta = with lib; {
27 description = "Code audit tool for python";
28 homepage = https://github.com/klen/pylama;
29 # ambiguous license declarations: https://github.com/klen/pylama/issues/64
30 license = licenses.lgpl3;
31 maintainers = with maintainers; [ dotlambda ];
32 };
33}