summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/memory-allocator/default.nix
blob: 4b0f1628de6292340bcdd167fd9fd5a784139beb (plain)
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
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  fetchPypi,
  buildPythonPackage,
  pkg-config,
  meson-python,
  cython,

  # Reverse dependency
  sage,
}:

buildPythonPackage rec {
  pname = "memory-allocator";
  version = "0.2.0";
  pyproject = true;

  src = fetchPypi {
    inherit version;
    pname = "memory_allocator";
    hash = "sha256-Z108kQGduYyXRB3nPVxkiCHlroE/P1TNCYY9R0tI/iY=";
  };

  nativeBuildInputs = [ pkg-config ];

  build-system = [
    meson-python
    cython
  ];

  propagatedBuildInputs = [ cython ];

  pythonImportsCheck = [ "memory_allocator" ];

  passthru.tests = {
    inherit sage;
  };

  meta = {
    description = "Extension class to allocate memory easily with cython";
    homepage = "https://github.com/sagemath/memory_allocator/";
    teams = [ lib.teams.sage ];
    license = lib.licenses.lgpl3Plus;
  };
}