-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
/
default.nix
40 lines (32 loc) · 910 Bytes
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
buildPythonPackage,
pythonOlder,
fetchPypi,
lib,
python,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pycodestyle";
version = "2.12.0";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-RC+VAUG09D33Ut0wNRH/3tOgTCtvt/ZZgFdPDDHm55w=";
};
pythonImportsCheck = [ "pycodestyle" ];
nativCheckInputs = [ pytestCheckHook ];
# https://github.com/PyCQA/pycodestyle/blob/2.11.0/tox.ini#L16
postCheck = ''
${python.interpreter} -m pycodestyle --statistics pycodestyle.py
'';
meta = with lib; {
changelog = "https://github.com/PyCQA/pycodestyle/blob/${version}/CHANGES.txt";
description = "Python style guide checker";
mainProgram = "pycodestyle";
homepage = "https://pycodestyle.pycqa.org/";
license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ];
};
}