From a30041c1a4a6299148614ad73e601b147a32b4d2 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Thu, 30 Sep 2021 18:34:07 -0400 Subject: [PATCH] python3Packages.collections-extended: init at 2.0.0 --- .../collections-extended/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/collections-extended/default.nix diff --git a/pkgs/development/python-modules/collections-extended/default.nix b/pkgs/development/python-modules/collections-extended/default.nix new file mode 100644 index 000000000000..52f73a5554a5 --- /dev/null +++ b/pkgs/development/python-modules/collections-extended/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, poetry-core +, pytestCheckHook +}: +buildPythonPackage rec { + pname = "collections-extended"; + version = "2.0.0"; + format = "pyproject"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "mlenzen"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256:1qcr1q49a134b122rpldjiim1fsl32gxs5fpj3232nyb05r68haz"; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "collections_extended" ]; + + 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; + maintainers = with maintainers; [ exarkun ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2139082ae59f..06a56e679d13 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1611,6 +1611,8 @@ in { colander = callPackage ../development/python-modules/colander { }; + collections-extended = callPackage ../development/python-modules/collections-extended { }; + colorama = callPackage ../development/python-modules/colorama { }; colorcet = callPackage ../development/python-modules/colorcet { };