summary refs log tree commit diff
path: root/pkgs/development/python-modules/cymem/default.nix
blob: 8033fa96113e8eb8869f849f3650761acb86e58f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, cython
, python
}:
buildPythonPackage rec {
  pname = "cymem";
  version = "1.31.2";
  name = pname + "-" + version;

  src = fetchFromGitHub {
    owner = "explosion";
    repo = "cymem";
    rev = "1.31.2";
    sha256 = "0miznr4kbdzw8yik3m96jmrlmln4qv7z3i3qdp7wjqr51zpqfm1k";
  };

  propagatedBuildInputs = [
   cython
  ];

  checkPhase = ''
    cd cymem/tests
    ${python.interpreter} -m unittest discover -p "*test*"
  '';

  meta = with stdenv.lib; {
    description = "Cython memory pool for RAII-style memory management";
    homepage = https://github.com/explosion/cymem;
    license = licenses.mit;
    maintainers = with maintainers; [ sdll ];
    };
}