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: 88f727936e94
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fcb8de92ee81
Choose a head ref
  • 10 commits
  • 10 files changed
  • 1 contributor

Commits on Oct 17, 2019

  1. pythonPackages.coloredlogs: disable impure tests

    Jonathan Ringer committed Oct 17, 2019
    Copy the full SHA
    713c544 View commit details
  2. pythonPackages.cerberus: fix tests

    Jonathan Ringer committed Oct 17, 2019
    Copy the full SHA
    edffcd5 View commit details
  3. pythonPackages.eve: fix dependency bounds

    Jonathan Ringer committed Oct 17, 2019
    Copy the full SHA
    bbaf179 View commit details
  4. pythonPackages.keras-preprocessing: 1.0.9 -> 1.1.0

    Jonathan Ringer committed Oct 17, 2019
    Copy the full SHA
    6c4e657 View commit details
  5. pythonPackages.diff_cover: 1.0.2 -> 2.3.0

    Jonathan Ringer committed Oct 17, 2019
    Copy the full SHA
    e9f0d99 View commit details
  6. pythonPackages.paste: 3.0.8 -> 3.2.2

    Jonathan Ringer committed Oct 17, 2019
    Copy the full SHA
    57542b1 View commit details
  7. pythonPackages.webtest: disable for python2

    python2 tries to import paste.deploy, which is no longer valid
    Jonathan Ringer committed Oct 17, 2019
    Copy the full SHA
    672c780 View commit details
  8. pythonPackages.astor: disable for python2

      The setup.py is no longer valid with setuptools>=41.4.0
    Jonathan Ringer committed Oct 17, 2019
    Copy the full SHA
    93cae61 View commit details
  9. pythonPackages.factory_boy: fix python2 dependencies

    Jonathan Ringer committed Oct 17, 2019
    Copy the full SHA
    12c8a47 View commit details
  10. pythonPackages.faker: 1.0.8 -> 2.0.3

    Jonathan Ringer committed Oct 17, 2019
    Copy the full SHA
    fcb8de9 View commit details
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/astor/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{ stdenv, buildPythonPackage, fetchPypi, pytest }:
{ stdenv, buildPythonPackage, fetchPypi, isPy27, pytest }:

buildPythonPackage rec {
pname = "astor";
version = "0.8.0";
disabled = isPy27; # setup.py is no longer valid with setuptools>=41.4

src = fetchPypi {
inherit pname version;
4 changes: 4 additions & 0 deletions pkgs/development/python-modules/cerberus/default.nix
Original file line number Diff line number Diff line change
@@ -11,6 +11,10 @@ buildPythonPackage rec {

checkInputs = [ pytestrunner pytest ];

checkPhase = ''
pytest -k 'not nested_oneofs'
'';

meta = with stdenv.lib; {
homepage = http://python-cerberus.org/;
description = "Lightweight, extensible schema and data validation tool for Python dictionaries";
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/coloredlogs/default.nix
Original file line number Diff line number Diff line change
@@ -19,7 +19,8 @@ buildPythonPackage rec {
});

checkPhase = ''
PATH=$PATH:$out/bin pytest . -k "not test_plain_text_output_format"
PATH=$PATH:$out/bin pytest . -k "not test_plain_text_output_format \
and not test_auto_install"
'';
checkInputs = [ pytest mock utillinux ];

38 changes: 24 additions & 14 deletions pkgs/development/python-modules/diff_cover/default.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,41 @@
{ stdenv, buildPythonPackage, fetchPypi, jinja2, jinja2_pluralize, pygments,
six, inflect, mock, nose, coverage, pycodestyle, flake8, pyflakes, git,
pylint, pydocstyle, fetchpatch, glibcLocales }:
{ stdenv, buildPythonPackage, fetchPypi
, inflect
, jinja2
, jinja2_pluralize
, pygments
, six
# test dependencies
, coverage
, flake8
, mock
, nose
, pycodestyle
, pyflakes
, pylint
, pytest
}:

buildPythonPackage rec {
pname = "diff_cover";
version = "1.0.2";
version = "2.3.0";

preCheck = ''
export LC_ALL=en_US.UTF-8;
'';

src = fetchPypi {
inherit pname version;
sha256 = "1wbp0kfv2mjxwnq2jlqmwvb71fywwc4x4azxi7ll5dll6nhjyd61";
sha256 = "1kfv5icvnljh9c97i3fykh0zlba1zjz0rb3p9x06hdwh25n81915";
};

patches = [
(fetchpatch {
name = "tests-fix.patch";
url = "https://github.com/Bachmann1234/diff-cover/commit/85c30959c8ed2aa3848f400095a2418f15bb7777.patch";
sha256 = "0xni4syrxww9kdv8495f416vqgfdys4w2hgf5rdi35hy3ybfslh0";
})
];

propagatedBuildInputs = [ jinja2 jinja2_pluralize pygments six inflect ];

checkInputs = [ mock nose coverage pycodestyle flake8 pyflakes pylint pydocstyle git glibcLocales ];
checkInputs = [ mock coverage pytest nose pylint pyflakes pycodestyle ];

# ignore tests which try to write files
checkPhase = ''
pytest -k 'not added_file_pylint_console and not file_does_not_exist'
'';

meta = with stdenv.lib; {
description = "Automatically find diff lines that need test coverage";
5 changes: 5 additions & 0 deletions pkgs/development/python-modules/eve/default.nix
Original file line number Diff line number Diff line change
@@ -19,6 +19,11 @@ buildPythonPackage rec {
werkzeug
];

postPatch = ''
substituteInPlace setup.py \
--replace "werkzeug==0.15.4" "werkzeug"
'';

# tests call a running mongodb instance
doCheck = false;

12 changes: 5 additions & 7 deletions pkgs/development/python-modules/factory_boy/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{ stdenv
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, faker
, python
, ipaddress
}:

buildPythonPackage rec {
@@ -14,16 +16,12 @@ buildPythonPackage rec {
sha256 = "0w53hjgag6ad5i2vmrys8ysk54agsqvgbjy9lg8g0d8pi9h8vx7s";
};

propagatedBuildInputs = [ faker ];
propagatedBuildInputs = [ faker ] ++ lib.optionals isPy27 [ ipaddress ];

# tests not included with pypi release
doCheck = false;

checkPhase = ''
${python.interpreter} -m unittest
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "A Python package to create factories for complex objects";
homepage = https://github.com/rbarrois/factory_boy;
license = licenses.mit;
18 changes: 6 additions & 12 deletions pkgs/development/python-modules/faker/default.nix
Original file line number Diff line number Diff line change
@@ -10,26 +10,28 @@
, pytestrunner
, random2
, ukpostcodeparser
, validators
}:

assert pythonOlder "3.3" -> ipaddress != null;

buildPythonPackage rec {
pname = "Faker";
version = "1.0.8";
version = "2.0.3";

src = fetchPypi {
inherit pname version;
sha256 = "6886d58f3c24d8ecdaa3740b138121614197ffd3e0adfb0cb02ca4e71e292dfe";
sha256 = "19zdcdmc11syjbmnbq98yny3dwb5jqw8cxcbq9g2scwzc5f7b32y";
};

buildInputs = [ pytestrunner ];
nativeBuildInputs = [ pytestrunner ];
checkInputs = [
email_validator
freezegun
pytest
random2
ukpostcodeparser
validators
]
++ lib.optionals (pythonOlder "3.3") [ mock ]
++ lib.optionals (pythonOlder "3.0") [ more-itertools ];
@@ -38,18 +40,10 @@ buildPythonPackage rec {
dateutil
six
text-unidecode
] ++ lib.optional (pythonOlder "3.3") ipaddress;
];

postPatch = ''
substituteInPlace setup.py --replace "pytest>=3.8.0,<3.9" "pytest"
# see https://github.com/joke2k/faker/pull/911, fine since we pin correct
# versions for python2
substituteInPlace setup.py --replace "more-itertools<6.0.0" "more-itertools"
# https://github.com/joke2k/faker/issues/970
substituteInPlace setup.py --replace "random2==1.0.1" "random2>=1.0.1"
substituteInPlace setup.py --replace "freezegun==0.3.11" "freezegun>=0.3.11"
'';

meta = with lib; {
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

buildPythonPackage rec {
pname = "Keras_Preprocessing";
version = "1.0.9";
version = "1.1.0";

src = fetchPypi {
inherit pname version;
sha256 = "5e3700117981c2db762e512ed6586638124fac5842170701628088a11aeb51ac";
sha256 = "1r98nm4k1svsqjyaqkfk23i31bl1kcfcyp7094yyj3c43phfp3as";
};

propagatedBuildInputs = [
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/paste/default.nix
Original file line number Diff line number Diff line change
@@ -8,12 +8,12 @@

buildPythonPackage rec {
pname = "paste";
version = "3.0.8";
version = "3.2.2";

src = fetchPypi {
pname = "Paste";
inherit version;
sha256 = "05w1sh6ky4d7pmdb8nv82n13w22jcn3qsagg5ih3hjmbws9kkwf4";
sha256 = "15p95br9x7zjy0cckdy6xmhfg61cg49rhi75jd00svrnz234s7qb";
};

propagatedBuildInputs = [ six ];
2 changes: 2 additions & 0 deletions pkgs/development/python-modules/webtest/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy27
, nose
, webob
, six
@@ -15,6 +16,7 @@
buildPythonPackage rec {
version = "2.0.32";
pname = "webtest";
disabled = isPy27; # paste.deploy is not longer a valid import

src = fetchPypi {
pname = "WebTest";