1{ lib, buildPythonPackage, fetchPypi, flake8, six, pythonOlder, importlib-metadata }:
2
3buildPythonPackage rec {
4 pname = "orderedmultidict";
5 version = "1.0.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1bc2v0yflsxjyyjx4q9wqx0j3bvzcw9z87d5pz4iqac7bsxhn1q4";
10 };
11
12 nativeCheckInputs = [ flake8 ];
13
14 propagatedBuildInputs = [ six ]
15 ++ lib.optionals (pythonOlder "3.8") [
16 importlib-metadata
17 ];
18
19 meta = with lib; {
20 description = "Ordered Multivalue Dictionary.";
21 homepage = "https://github.com/gruns/orderedmultidict";
22 license = licenses.publicDomain;
23 maintainers = with maintainers; [ vanzef ];
24 };
25}