1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 cython,
6
7 # Reverse dependency
8 sage,
9}:
10
11buildPythonPackage rec {
12 pname = "memory-allocator";
13 version = "0.1.4";
14 format = "setuptools";
15
16 src = fetchPypi {
17 inherit version;
18 pname = "memory_allocator";
19 hash = "sha256-1gkhawMDGWfitFqASxL/kClXj07AGf3kLPau1soJ7+Q=";
20 };
21
22 propagatedBuildInputs = [ cython ];
23
24 pythonImportsCheck = [ "memory_allocator" ];
25
26 passthru.tests = {
27 inherit sage;
28 };
29
30 meta = with lib; {
31 description = "Extension class to allocate memory easily with cython";
32 homepage = "https://github.com/sagemath/memory_allocator/";
33 teams = [ teams.sage ];
34 license = licenses.lgpl3Plus;
35 };
36}