Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 44 lines 875 B view raw
1{ lib, buildPythonPackage, fetchPypi 2, setuptools_scm 3, sphinx 4, hypothesis 5, py 6, pytest 7, pytest-benchmark 8, sortedcollections 9, sortedcontainers 10, isPy3k 11}: 12 13buildPythonPackage rec { 14 pname = "bidict"; 15 version = "0.18.2"; 16 disabled = !isPy3k; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "0br3ljvd56nqifr1mbwksvl5jjk40pihrrjlyn7hmc40yq6m5bvh"; 21 }; 22 23 nativeBuildInputs = [ setuptools_scm ]; 24 propagatedBuildInputs = [ sphinx ]; 25 26 checkInputs = [ 27 hypothesis 28 py 29 pytest 30 pytest-benchmark 31 sortedcollections 32 sortedcontainers 33 ]; 34 checkPhase = '' 35 pytest tests 36 ''; 37 38 meta = with lib; { 39 homepage = https://github.com/jab/bidict; 40 description = "Efficient, Pythonic bidirectional map data structures and related functionality"; 41 license = licenses.mpl20; 42 maintainers = with maintainers; [ jakewaksbaum ]; 43 }; 44}