mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-23 00:11:11 +08:00
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>
37 lines
696 B
Nix
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;
|
|
};
|
|
}
|