Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 773 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pytest 5, cython 6, cymem 7, python 8}: 9buildPythonPackage rec { 10 pname = "preshed"; 11 version = "2.0.1"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "1rd943zp4gyspajqm5qxzndxziyh51grx0zcw23w8r9r65s1rq6s"; 16 }; 17 18 propagatedBuildInputs = [ 19 cython 20 cymem 21 ]; 22 23 buildInputs = [ 24 pytest 25 ]; 26 27 prePatch = '' 28 substituteInPlace setup.py \ 29 --replace "wheel>=0.32.0,<0.33.0" "wheel>=0.31.0" 30 ''; 31 32 checkPhase = '' 33 ${python.interpreter} setup.py test 34 ''; 35 36 meta = with stdenv.lib; { 37 description = "Cython hash tables that assume keys are pre-hashed"; 38 homepage = https://github.com/explosion/preshed; 39 license = licenses.mit; 40 maintainers = with maintainers; [ sdll ]; 41 }; 42}