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