Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 771 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, cython 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "cymem"; 10 version = "2.0.7"; 11 12 src = fetchFromGitHub { 13 owner = "explosion"; 14 repo = "cymem"; 15 rev = "refs/tags/v${version}"; 16 hash = "sha256-lYMRFFMS+ETjWd4xi12ezC8CVLbLJfynmOU1DpYQcck="; 17 }; 18 19 propagatedBuildInputs = [ 20 cython 21 ]; 22 23 nativeCheckInputs = [ 24 pytestCheckHook 25 ]; 26 27 preCheck = '' 28 TEMPDIR=$(mktemp -d) 29 cp -R cymem/tests $TEMPDIR/ 30 pushd $TEMPDIR 31 ''; 32 33 postCheck = '' 34 popd 35 ''; 36 37 38 meta = with lib; { 39 description = "Cython memory pool for RAII-style memory management"; 40 homepage = "https://github.com/explosion/cymem"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ ]; 43 }; 44}