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