Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e8cfcf7f36f3
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 55e980e03177
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jan 10, 2020

  1. 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
    kamadorueda authored and Jon committed Jan 10, 2020
    Copy the full SHA
    55e980e View commit details
Showing with 16 additions and 3 deletions.
  1. +16 −3 pkgs/development/python-modules/pycodestyle/default.nix
19 changes: 16 additions & 3 deletions pkgs/development/python-modules/pycodestyle/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{ lib, buildPythonPackage, fetchPypi }:
{ buildPythonPackage
, fetchPypi
, lib
}:

buildPythonPackage rec {
pname = "pycodestyle";
version = "2.5.0";

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
];
};
}