python3Packages.immutabledict: init at 2.1.0

This commit is contained in:
Martin Weinelt 2021-08-09 16:38:54 +02:00
parent 9711fddc58
commit 9ec7deee8b
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "immutabledict";
version = "2.1.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "corenting";
repo = "immutabledict";
rev = "v${version}";
sha256 = "1n71154nfb6vr41iv00xcwkxmwnn1vwzbr3s23bjvlhvmnjb48a8";
};
# https://github.com/corenting/immutabledict/issues/56
postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry.api" "poetry.core.masonry.api"
'';
nativeBuildInputs = [
poetry-core
];
pythonImportsCheck = [
"immutabledict"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "A fork of frozendict, an immutable wrapper around dictionaries";
homepage = "https://github.com/corenting/immutabledict";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -3551,6 +3551,8 @@ in {
iminuit = callPackage ../development/python-modules/iminuit { };
immutabledict = callPackage ../development/python-modules/immutabledict { };
immutables = callPackage ../development/python-modules/immutables { };
impacket = callPackage ../development/python-modules/impacket { };