depot/third_party/nixpkgs/pkgs/development/python-modules/cymem/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

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; [ ];
};
}