From 55e980e031774559051c0593de375b9481bab45f Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Thu, 9 Jan 2020 19:43:36 -0500 Subject: [PATCH] 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 --- .../python-modules/pycodestyle/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pycodestyle/default.nix b/pkgs/development/python-modules/pycodestyle/default.nix index 286f42e2f30..acaf78cc4d2 100644 --- a/pkgs/development/python-modules/pycodestyle/default.nix +++ b/pkgs/development/python-modules/pycodestyle/default.nix @@ -1,4 +1,7 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ buildPythonPackage +, fetchPypi +, lib +}: buildPythonPackage rec { pname = "pycodestyle"; @@ -6,13 +9,23 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "e40a936c9a450ad81df37f549d676d127b1b66000a6c500caa2b085bc0ca976c"; + 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; [ ]; + maintainers = with maintainers; [ + kamadorueda + ]; }; }