From 38e449aceb611661e899b4dec0babf166ddd5f09 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Mon, 27 Sep 2021 16:44:43 -0400 Subject: [PATCH] Add collections-extended. --- nix/collections-extended.nix | 19 +++++++++++++++++++ nix/overlays.nix | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 nix/collections-extended.nix diff --git a/nix/collections-extended.nix b/nix/collections-extended.nix new file mode 100644 index 000000000..3f1ad165a --- /dev/null +++ b/nix/collections-extended.nix @@ -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; + }; +} diff --git a/nix/overlays.nix b/nix/overlays.nix index 2bf58575e..aae808131 100644 --- a/nix/overlays.nix +++ b/nix/overlays.nix @@ -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 }; }; }