at 22.05-pre 787 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, cython 5, python 6}: 7 8buildPythonPackage rec { 9 pname = "cymem"; 10 version = "2.0.3"; 11 12 src = fetchFromGitHub { 13 owner = "explosion"; 14 repo = "cymem"; 15 rev = "v${version}"; 16 sha256 = "0cqz6whq4zginxjnh4cfqlsh535p4qz295ymvjchp71fv8mz11f6"; 17 }; 18 19 propagatedBuildInputs = [ 20 cython 21 ]; 22 23 prePatch = '' 24 substituteInPlace setup.py \ 25 --replace "wheel>=0.32.0,<0.33.0" "wheel>=0.31.0" 26 ''; 27 28 checkPhase = '' 29 cd cymem/tests 30 ${python.interpreter} -m unittest discover -p "*test*" 31 ''; 32 33 meta = with lib; { 34 description = "Cython memory pool for RAII-style memory management"; 35 homepage = "https://github.com/explosion/cymem"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ ]; 38 }; 39}