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