python3Packages.orderedmultidict: modernize

This commit is contained in:
Robert Schütz
2025-06-20 18:06:20 -07:00
parent b539eb9595
commit 27e00a8743
@@ -3,29 +3,33 @@
buildPythonPackage,
fetchPypi,
flake8,
pytestCheckHook,
setuptools,
six,
pythonOlder,
importlib-metadata,
}:
buildPythonPackage rec {
pname = "orderedmultidict";
version = "1.0.1";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "1bc2v0yflsxjyyjx4q9wqx0j3bvzcw9z87d5pz4iqac7bsxhn1q4";
hash = "sha256-BAcLu16HKRzJv6Ud9BNnf68hQcc8YdKl97Jr6jzYgq0=";
};
nativeCheckInputs = [ flake8 ];
build-system = [ setuptools ];
propagatedBuildInputs = [ six ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
dependencies = [ six ];
meta = with lib; {
pythonImportsCheck = [ "orderedmultidict" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Ordered Multivalue Dictionary";
homepage = "https://github.com/gruns/orderedmultidict";
license = licenses.publicDomain;
maintainers = with maintainers; [ vanzef ];
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ vanzef ];
};
}