a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
44 lines
773 B
Nix
44 lines
773 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cython
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cymem";
|
|
version = "2.0.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "explosion";
|
|
repo = "cymem";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-lYMRFFMS+ETjWd4xi12ezC8CVLbLJfynmOU1DpYQcck=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cython
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
TEMPDIR=$(mktemp -d)
|
|
cp -R cymem/tests $TEMPDIR/
|
|
pushd $TEMPDIR
|
|
'';
|
|
|
|
postCheck = ''
|
|
popd
|
|
'';
|
|
|
|
|
|
meta = with lib; {
|
|
description = "Cython memory pool for RAII-style memory management";
|
|
homepage = "https://github.com/explosion/cymem";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|