2024-05-22 16:01:06 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
cython,
|
2024-05-06 14:13:20 +02:00
|
|
|
|
2024-05-22 16:01:06 +02:00
|
|
|
# Reverse dependency
|
|
|
|
sage,
|
2021-07-16 17:25:55 -03:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "memory-allocator";
|
2024-04-06 08:01:35 +00:00
|
|
|
version = "0.1.4";
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2021-07-16 17:25:55 -03:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version;
|
|
|
|
pname = "memory_allocator";
|
2024-04-06 08:01:35 +00:00
|
|
|
hash = "sha256-1gkhawMDGWfitFqASxL/kClXj07AGf3kLPau1soJ7+Q=";
|
2021-07-16 17:25:55 -03:00
|
|
|
};
|
|
|
|
|
2024-03-24 03:25:37 +01:00
|
|
|
propagatedBuildInputs = [ cython ];
|
2021-08-22 14:16:35 -03:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "memory_allocator" ];
|
2021-07-16 17:25:55 -03:00
|
|
|
|
2024-05-22 16:01:06 +02:00
|
|
|
passthru.tests = {
|
|
|
|
inherit sage;
|
|
|
|
};
|
2024-05-06 14:13:20 +02:00
|
|
|
|
2021-07-16 17:25:55 -03:00
|
|
|
meta = with lib; {
|
2024-06-07 09:46:46 +02:00
|
|
|
description = "Extension class to allocate memory easily with cython";
|
2021-07-16 17:25:55 -03:00
|
|
|
homepage = "https://github.com/sagemath/memory_allocator/";
|
|
|
|
maintainers = teams.sage.members;
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
};
|
|
|
|
}
|