python3Packages.flatten-dict: modernize

This commit is contained in:
Fabian Affolter
2026-05-06 21:22:29 +02:00
committed by GitHub
parent b646c6cd9b
commit c6676ce805
@@ -4,10 +4,9 @@
fetchFromGitHub,
poetry-core,
pytestCheckHook,
six,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "flatten-dict";
version = "0.5.0";
pyproject = true;
@@ -15,13 +14,11 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "ianlini";
repo = "flatten-dict";
rev = version;
tag = finalAttrs.version;
hash = "sha256-wzCuTnLOOeybhBPcyyPNPKWoJBHwaKkmARTzlg87wtU=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ six ];
build-system = [ poetry-core ];
nativeCheckInputs = [ pytestCheckHook ];
@@ -30,7 +27,8 @@ buildPythonPackage rec {
meta = {
description = "Module for flattening and unflattening dict-like objects";
homepage = "https://github.com/ianlini/flatten-dict";
changelog = "https://github.com/ianlini/flatten-dict/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
})