1{ stdenv 2, buildPythonPackage 3, fetchFromGitHub 4, cython 5, python 6}: 7buildPythonPackage rec { 8 name = "cymem-${version}"; 9 version = "1.31.2"; 10 11 src = fetchFromGitHub { 12 owner = "explosion"; 13 repo = "cymem"; 14 rev = "1.31.2"; 15 sha256 = "0miznr4kbdzw8yik3m96jmrlmln4qv7z3i3qdp7wjqr51zpqfm1k"; 16 }; 17 18 propagatedBuildInputs = [ 19 cython 20 ]; 21 22 checkPhase = '' 23 cd cymem/tests 24 ${python.interpreter} -m unittest discover -p "*test*" 25 ''; 26 27 meta = with stdenv.lib; { 28 description = "Cython memory pool for RAII-style memory management"; 29 homepage = https://github.com/explosion/cymem; 30 license = licenses.mit; 31 maintainers = with maintainers; [ sdll ]; 32 }; 33}