2020-01-27 20:14:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, blas
|
2020-03-31 14:47:18 +00:00
|
|
|
, lapack
|
2020-01-27 20:14:46 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
# check inputs
|
2021-11-11 16:20:28 +00:00
|
|
|
, pytestCheckHook
|
2020-01-27 20:14:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-11-11 16:20:28 +00:00
|
|
|
pname = "scs";
|
|
|
|
version = "3.0.0";
|
2020-01-27 20:14:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bodono";
|
|
|
|
repo = "scs-python";
|
2021-11-11 16:20:28 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-7OgqCo21S0FDev8xv6/8iGFXg8naVi93zd8v1f9iaWw=";
|
|
|
|
fetchSubmodules = true;
|
2020-01-27 20:14:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-03-31 14:47:18 +00:00
|
|
|
lapack
|
2020-01-27 20:14:46 +00:00
|
|
|
blas
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
2021-11-11 16:20:28 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-01-27 20:14:46 +00:00
|
|
|
pythonImportsCheck = [ "scs" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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";
|
2021-11-11 16:20:28 +00:00
|
|
|
license = licenses.mit;
|
2020-01-27 20:14:46 +00:00
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|