Files
nixpkgs/pkgs/development/python-modules/memory-allocator/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
696 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
cython,
# 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" ];
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;
};
}