They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
72 lines
1.5 KiB
Nix
72 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
meson-python,
|
|
numpy,
|
|
pkg-config,
|
|
|
|
blas,
|
|
lapack,
|
|
|
|
# dependencies
|
|
scipy,
|
|
|
|
# check inputs
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "scs";
|
|
version = "3.2.7.post2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bodono";
|
|
repo = "scs-python";
|
|
tag = version;
|
|
hash = "sha256-A626gK30J4e/TrJMXYc+jMgYw7fNcnWfnTeXlyYQNMM=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "numpy >= 2.0.0" "numpy"
|
|
'';
|
|
|
|
build-system = [
|
|
meson-python
|
|
numpy
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
|
blas
|
|
lapack
|
|
];
|
|
|
|
dependencies = [
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
pythonImportsCheck = [ "scs" ];
|
|
|
|
meta = {
|
|
description = "Python interface for SCS: Splitting Conic Solver";
|
|
longDescription = ''
|
|
Solves convex cone programs via operator splitting.
|
|
Can solve: linear programs (LPs), second-order cone programs (SOCPs), semidefinite programs (SDPs),
|
|
exponential cone programs (ECPs), and power cone programs (PCPs), or problems with any combination of those cones.
|
|
'';
|
|
homepage = "https://github.com/cvxgrp/scs"; # upstream C package
|
|
downloadPage = "https://github.com/bodono/scs-python";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ drewrisinger ];
|
|
};
|
|
}
|