Commit Graph

10 Commits

Author SHA1 Message Date
Robert Schütz
e6b8eb0280
pythonPackages.natsort: fix tests
A coverage report is definitely not needed for Nixpkgs.
2018-03-03 19:33:41 +01:00
Vladimír Čunát
f5ce8f86df
Revert "Merge staging at '8d490ca9934d0' into master"
This reverts commit fc232422201c0364dbd57826c9a137cc1239caea, reversing
changes made to 754816b84b98afdc0727e13dd66e1698b097de6a.
We don't have many binaries yet.  Comment on the original merge commit.
2018-02-26 22:53:18 +01:00
Robert Schütz
d3a347547c pythonPackages.natsort: fix tests
A coverage report is definitely not needed for Nixpkgs.
2018-02-22 01:46:11 +01:00
Frederik Rietdijk
7e2a46ecdf python.pkgs.natsort: fix build 2018-02-18 20:07:43 +01:00
Frederik Rietdijk
07cc52863a python: natsort: 5.1.1 -> 5.2.0 2018-02-18 20:07:42 +01:00
Frederik Rietdijk
1623c8371c buildPythonPackage: rename nix_run_setup.py to nix_run_setup
If the extension is .py it tends to be picked up by tools, breaking for
example tests.
2018-01-20 13:31:14 +01:00
Frederik Rietdijk
44e98de414 python.pkgs: maintenance updates 2017-11-24 20:36:20 +01:00
aszlig
e13c6645b1
python/natsort: Skip some tests with Python 3.[56]
Since the update to Python 3.6.3 in f906d6d18e87f4e2ee8a47d4f6040c77fd6
some of the Hypothesis tests in natsort suddenly begin to fail with
errors like this one:

res = '\x00\x00', f = <built-in function strxfrm>

>   return partial(reduce, lambda res, f: f(res), functions)
E   ValueError: embedded null character

The tests didn't fail with Python 3.6.2, but they did fail with Python
3.5 already.

I didn't dig through what the exact problem was, but I'd guess that the
problem could lie in Hypothesis itself. Unfortunately updating to the
latest version of Hypothesis didn't turn out to be that easy as well,
because the newer versions have a circular dependency on pytest and a
few other libraries.

So I opted against updating Hypothesis for now and just mark the tests
as "expected to fail" on purpose so that whenever we someday have a
newer version of Hypothesis, the build for natsort will fail and we can
remove this patch again.

Tested against Python 2.7, 3.4, 3.5 and 3.6 and all of the builds now
succeed.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @jluttine, @FRidh
2017-11-09 06:54:53 +01:00
Frederik Rietdijk
d58e1f1c7b python.pkgs: many updates 2017-08-25 19:36:14 +02:00
Jaakko Luttinen
8a68e4c7f6 pythonPackages.natsort: 5.0.1 -> 5.0.3
* pythonPackages.natsort: refactor config

* pythonPackages.natsort: 5.0.1 -> 5.0.3

* pythonPackages.natsort: fix broken
2017-05-14 20:05:50 +02:00