depot/third_party/nixpkgs/pkgs/development/python-modules/cymem/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

44 lines
771 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}";
hash = "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; [ ];
};
}