@@ -5,26 +5,22 @@
55, lapack
66, numpy
77, scipy
8−, scs
98 # check inputs
10−, nose
9+, pytestCheckHook
1110}:
1211
1312buildPythonPackage rec {
14− inherit (scs) pname version;
13+ pname = "scs";
14+ version = "3.0.0";
1515
1616 src = fetchFromGitHub {
1717 owner = "bodono";
1818 repo = "scs-python";
19− rev = "f02abdc0e2e0a5851464e30f6766ccdbb19d73f0"; # need to choose commit manually, untagged
20− sha256 = "174b5s7cwgrn1m55jlrszdl403zhpzc4yl9acs6kjv9slmg1mmjr";
19+ rev = version;
20+ sha256 = "sha256-7OgqCo21S0FDev8xv6/8iGFXg8naVi93zd8v1f9iaWw=";
21+ fetchSubmodules = true;
2122 };
2223
23− preConfigure = ''
24− rm -r scs
25− ln -s ${scs.src} scs
26− '';
27−
2824 buildInputs = [
2925 lapack
3026 blas
@@ -35,10 +31,7 @@ buildPythonPackage rec {
3531 scipy
3632 ];
3733
38− checkInputs = [ nose ];
39− checkPhase = ''
40− nosetests
41− '';
34+ checkInputs = [ pytestCheckHook ];
4235 pythonImportsCheck = [ "scs" ];
4336
4437 meta = with lib; {
@@ -50,7 +43,7 @@ buildPythonPackage rec {
5043 '';
5144 homepage = "https://github.com/cvxgrp/scs"; # upstream C package
5245 downloadPage = "https://github.com/bodono/scs-python";
53− license = licenses.gpl3;
46+ license = licenses.mit;
5447 maintainers = with maintainers; [ drewrisinger ];
5548 };
5649}