1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pycodestyle/default.nix
Kevin Amado 55e980e031 pythonPackages.pycodestyle: improve tests
- This commit adjust the tests to the ones that are found in the
  tox.ini file for the specified version of the module
- This means we'll have 3 tests in adition to the default one
2020-01-09 19:04:45 -08:00

32 lines
770 B
Nix

{ buildPythonPackage
, fetchPypi
, lib
}:
buildPythonPackage rec {
pname = "pycodestyle";
version = "2.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "0v4prb05n21bm8650v0a01k1nyqjdmkrsm3zycfxh2j5k9n962p4";
};
# https://github.com/PyCQA/pycodestyle/blob/2.5.0/tox.ini#L14
checkPhase = ''
python pycodestyle.py --max-doc-length=72 --testsuite testsuite
python pycodestyle.py --statistics pycodestyle.py
python pycodestyle.py --max-doc-length=72 --doctest
python setup.py test
'';
meta = with lib; {
description = "Python style guide checker (formerly called pep8)";
homepage = https://pycodestyle.readthedocs.io;
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}