1{ lib 2, buildPythonPackage 3, cymem 4, cython 5, python 6, fetchPypi 7, murmurhash 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "preshed"; 14 version = "3.0.9"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-chhjxSRP/NJlGtCSiVGix8d7EC9OEaJRrYXTfudiFmA="; 22 }; 23 24 nativeBuildInputs = [ 25 cython 26 ]; 27 28 propagatedBuildInputs = [ 29 cymem 30 murmurhash 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 # Tests have import issues with 3.0.8 38 doCheck = false; 39 40 pythonImportsCheck = [ 41 "preshed" 42 ]; 43 44 meta = with lib; { 45 description = "Cython hash tables that assume keys are pre-hashed"; 46 homepage = "https://github.com/explosion/preshed"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ ]; 49 }; 50}