1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 13:29:13 +03:00
nixpkgs/pkgs/development/python-modules/pycodestyle/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1 KiB
Nix
Raw Normal View History

{ buildPythonPackage
, pythonOlder
, fetchPypi
, lib
2020-06-07 09:33:46 +02:00
, python
}:
2017-07-13 00:32:27 +00:00
buildPythonPackage rec {
pname = "pycodestyle";
version = "2.10.0";
disabled = pythonOlder "3.6";
format = "setuptools";
2017-07-13 00:32:27 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-NHGHvbR2Mp2Y9pXCE9cpWoRtEVL/T+m6y4qVkLjucFM=";
2017-07-13 00:32:27 +00:00
};
# https://github.com/PyCQA/pycodestyle/blob/2.10.0/tox.ini#L13
checkPhase = ''
${python.interpreter} -m pycodestyle --statistics pycodestyle.py
${python.interpreter} -m pycodestyle --max-doc-length=72 --testsuite testsuite
${python.interpreter} -m pycodestyle --max-doc-length=72 --doctest
2020-06-07 09:33:46 +02:00
${python.interpreter} -m unittest discover testsuite -vv
'';
pythonImportsCheck = [ "pycodestyle" ];
2017-07-13 00:32:27 +00:00
meta = with lib; {
changelog = "https://github.com/PyCQA/pycodestyle/blob/${version}/CHANGES.txt";
description = "Python style guide checker";
homepage = "https://pycodestyle.pycqa.org/";
2017-07-13 00:32:27 +00:00
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
2017-07-13 00:32:27 +00:00
};
}