|
|
|
@ -5,26 +5,22 @@ |
|
|
|
|
, lapack |
|
|
|
|
, numpy |
|
|
|
|
, scipy |
|
|
|
|
, scs |
|
|
|
|
# check inputs |
|
|
|
|
, nose |
|
|
|
|
, pytestCheckHook |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
inherit (scs) pname version; |
|
|
|
|
pname = "scs"; |
|
|
|
|
version = "3.0.0"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "bodono"; |
|
|
|
|
repo = "scs-python"; |
|
|
|
|
rev = "f02abdc0e2e0a5851464e30f6766ccdbb19d73f0"; # need to choose commit manually, untagged |
|
|
|
|
sha256 = "174b5s7cwgrn1m55jlrszdl403zhpzc4yl9acs6kjv9slmg1mmjr"; |
|
|
|
|
rev = version; |
|
|
|
|
sha256 = "sha256-7OgqCo21S0FDev8xv6/8iGFXg8naVi93zd8v1f9iaWw="; |
|
|
|
|
fetchSubmodules = true; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
preConfigure = '' |
|
|
|
|
rm -r scs |
|
|
|
|
ln -s ${scs.src} scs |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
buildInputs = [ |
|
|
|
|
lapack |
|
|
|
|
blas |
|
|
|
@ -35,10 +31,7 @@ buildPythonPackage rec { |
|
|
|
|
scipy |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
checkInputs = [ nose ]; |
|
|
|
|
checkPhase = '' |
|
|
|
|
nosetests |
|
|
|
|
''; |
|
|
|
|
checkInputs = [ pytestCheckHook ]; |
|
|
|
|
pythonImportsCheck = [ "scs" ]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
@ -50,7 +43,7 @@ buildPythonPackage rec { |
|
|
|
|
''; |
|
|
|
|
homepage = "https://github.com/cvxgrp/scs"; # upstream C package |
|
|
|
|
downloadPage = "https://github.com/bodono/scs-python"; |
|
|
|
|
license = licenses.gpl3; |
|
|
|
|
license = licenses.mit; |
|
|
|
|
maintainers = with maintainers; [ drewrisinger ]; |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|