python3Packages.immutabledict: init at 2.1.0
This commit is contained in:
parent
9711fddc58
commit
9ec7deee8b
45
pkgs/development/python-modules/immutabledict/default.nix
Normal file
45
pkgs/development/python-modules/immutabledict/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -3551,6 +3551,8 @@ in {
|
|||||||
|
|
||||||
iminuit = callPackage ../development/python-modules/iminuit { };
|
iminuit = callPackage ../development/python-modules/iminuit { };
|
||||||
|
|
||||||
|
immutabledict = callPackage ../development/python-modules/immutabledict { };
|
||||||
|
|
||||||
immutables = callPackage ../development/python-modules/immutables { };
|
immutables = callPackage ../development/python-modules/immutables { };
|
||||||
|
|
||||||
impacket = callPackage ../development/python-modules/impacket { };
|
impacket = callPackage ../development/python-modules/impacket { };
|
||||||
|
Loading…
Reference in New Issue
Block a user