Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, sortedcontainers 5}: 6 7buildPythonPackage rec { 8 pname = "expiring-dict"; 9 version = "1.1.0"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-PEBK2x5DaUaMt+Ub+8nEcNfi6GPv4qHHXU7XBtDc4aY="; 15 }; 16 17 propagatedBuildInputs = [ 18 sortedcontainers 19 ]; 20 21 pythonImportsCheck = [ 22 "expiring_dict" 23 ]; 24 25 meta = with lib; { 26 description = "Python dict with TTL support for auto-expiring caches"; 27 homepage = "https://github.com/dparker2/py-expiring-dict"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ ajs124 ]; 30 }; 31}