Add collections-extended.

This commit is contained in:
Itamar Turner-Trauring 2021-09-27 16:44:43 -04:00
parent 96acb14199
commit 38e449aceb
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,19 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "collections-extended";
version = "1.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "0lb69x23asd68n0dgw6lzxfclavrp2764xsnh45jm97njdplznkw";
};
# Tests aren't in tarball, for 1.0.3 at least.
doCheck = false;
meta = with lib; {
homepage = https://github.com/mlenzen/collections-extended;
description = "Extra Python Collections - bags (multisets), setlists (unique list / indexed set), RangeMap and IndexedDict";
license = licenses.asl20;
};
}

View File

@ -18,6 +18,9 @@ self: super: {
# Need a newer version of Twisted, too.
twisted = python-super.callPackage ./twisted.nix { };
# collections-extended is not part of nixpkgs at this time.
collections-extended = python-super.callPackage ./collections-extended.nix
};
};
}