mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 12:44:44 +00: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>
33 lines
672 B
Nix
33 lines
672 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
sage-src,
|
|
cython,
|
|
jinja2,
|
|
pkgconfig, # the python module, not the pkg-config alias
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = src.version;
|
|
format = "setuptools";
|
|
pname = "sage-setup";
|
|
src = sage-src;
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
buildInputs = [ pkgconfig ];
|
|
propagatedBuildInputs = [ jinja2 ];
|
|
|
|
preBuild = ''
|
|
cd pkgs/sage-setup
|
|
'';
|
|
|
|
doCheck = false; # sagelib depends on sage-setup, but sage-setup's tests depend on sagelib
|
|
|
|
meta = {
|
|
description = "Build system of the Sage library";
|
|
homepage = "https://www.sagemath.org";
|
|
license = lib.licenses.gpl2Plus;
|
|
teams = [ lib.teams.sage ];
|
|
};
|
|
}
|