nixpkgs/pkgs/development/python-modules/memory-allocator/default.nix

37 lines
708 B
Nix
Raw Normal View History

2024-05-22 16:01:06 +02:00
{
lib,
fetchPypi,
buildPythonPackage,
cython,
2024-05-22 16:01:06 +02:00
# Reverse dependency
sage,
}:
buildPythonPackage rec {
pname = "memory-allocator";
version = "0.1.4";
format = "setuptools";
src = fetchPypi {
inherit version;
pname = "memory_allocator";
hash = "sha256-1gkhawMDGWfitFqASxL/kClXj07AGf3kLPau1soJ7+Q=";
};
propagatedBuildInputs = [ cython ];
pythonImportsCheck = [ "memory_allocator" ];
2024-05-22 16:01:06 +02:00
passthru.tests = {
inherit sage;
};
meta = with lib; {
description = "Extension class to allocate memory easily with cython";
homepage = "https://github.com/sagemath/memory_allocator/";
maintainers = teams.sage.members;
license = licenses.lgpl3Plus;
};
}