3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #140094 from PrivateStorageio/init-pythonPackages-collections-extended

python3Packages.collections-extended: init at 2.0.0
This commit is contained in:
figsoda 2021-10-02 14:46:21 -04:00 committed by GitHub
commit 2aa0e0049c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -1613,6 +1613,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 { };