1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, cython
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "cymem";
10 version = "2.0.6";
11
12 src = fetchFromGitHub {
13 owner = "explosion";
14 repo = "cymem";
15 rev = "v${version}";
16 sha256 = "sha256-o+44v6wvE9HxeQaDDQ0+gi7z1V7jtkZvWglY8UyVHLg=";
17 };
18
19 propagatedBuildInputs = [
20 cython
21 ];
22
23 checkInputs = [ pytestCheckHook ];
24
25 preCheck = ''
26 cd cymem
27 '';
28
29 meta = with lib; {
30 description = "Cython memory pool for RAII-style memory management";
31 homepage = "https://github.com/explosion/cymem";
32 license = licenses.mit;
33 maintainers = with maintainers; [ ];
34 };
35}