mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
c4639f8cbc
I thought that the Python 2 package set was entirely separate from the Python 3 one, but this appears to actually be using the main nose package. The actual code doesn’t use nose at all, and their `tox.ini` uses unittest, so let’s fix that…
31 lines
695 B
Nix
31 lines
695 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, unittestCheckHook
|
|
, six
|
|
, stdenv
|
|
}:
|
|
|
|
|
|
buildPythonPackage rec {
|
|
pname = "more-itertools";
|
|
version = "5.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "38a936c0a6d98a38bcc2d03fdaaedaba9f412879461dd2ceff8d37564d6522e4";
|
|
};
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
# iterable = range(10 ** 10) # Is efficiently reversible
|
|
# OverflowError: Python int too large to convert to C long
|
|
doCheck = !stdenv.hostPlatform.is32bit;
|
|
|
|
meta = {
|
|
homepage = "https://more-itertools.readthedocs.org";
|
|
description = "Expansion of the itertools module";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|