nixpkgs/pkgs/development/python-modules/cymem/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
771 B
Nix
Raw Normal View History

{ lib
2017-05-14 22:25:14 +00:00
, buildPythonPackage
, fetchFromGitHub
, cython
, 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 {
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}";
hash = "sha256-lYMRFFMS+ETjWd4xi12ezC8CVLbLJfynmOU1DpYQcck=";
2017-05-14 22:25:14 +00:00
};
propagatedBuildInputs = [
cython
2017-05-14 22:25:14 +00:00
];
nativeCheckInputs = [
2022-12-30 19:13:04 +00:00
pytestCheckHook
];
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
'';
2022-12-30 19:13:04 +00:00
meta = with lib; {
2017-05-14 22:25:14 +00:00
description = "Cython memory pool for RAII-style memory management";
homepage = "https://github.com/explosion/cymem";
2017-05-14 22:25:14 +00:00
license = licenses.mit;
maintainers = with maintainers; [ ];
};
2017-05-14 22:25:14 +00:00
}