2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-05-14 22:25:14 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cython
|
2022-08-21 18:27:46 +00:00
|
|
|
, pytestCheckHook
|
2017-05-14 22:25:14 +00:00
|
|
|
}:
|
2019-12-21 07:06:17 +00:00
|
|
|
|
2017-05-14 22:25:14 +00:00
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "cymem";
|
2022-12-30 19:13:04 +00:00
|
|
|
version = "2.0.7";
|
2017-05-14 22:25:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "explosion";
|
|
|
|
repo = "cymem";
|
2022-12-30 19:13:04 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-lYMRFFMS+ETjWd4xi12ezC8CVLbLJfynmOU1DpYQcck=";
|
2017-05-14 22:25:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-09-18 09:22:27 +00:00
|
|
|
cython
|
2017-05-14 22:25:14 +00:00
|
|
|
];
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-30 19:13:04 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-08-06 16:32:04 +00:00
|
|
|
|
2022-08-24 16:38:29 +00:00
|
|
|
preCheck = ''
|
2022-12-30 19:13:04 +00:00
|
|
|
TEMPDIR=$(mktemp -d)
|
|
|
|
cp -R cymem/tests $TEMPDIR/
|
|
|
|
pushd $TEMPDIR
|
|
|
|
'';
|
|
|
|
|
|
|
|
postCheck = ''
|
|
|
|
popd
|
2022-08-24 16:38:29 +00:00
|
|
|
'';
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2022-12-30 19:13:04 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-14 22:25:14 +00:00
|
|
|
description = "Cython memory pool for RAII-style memory management";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/explosion/cymem";
|
2017-05-14 22:25:14 +00:00
|
|
|
license = licenses.mit;
|
2021-09-18 09:22:27 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
2017-05-14 22:25:14 +00:00
|
|
|
}
|