Commit 8b96a43b authored by Drew Risinger's avatar Drew Risinger
Browse files

python3Packages.scs: 2.1.1 -> 3.0.0

parent 6c6080dd
Loading
Loading
Loading
Loading
+8 −15
Original line number Diff line number Diff line
@@ -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 ];
  };
}
+1 −1
Original line number Diff line number Diff line
@@ -8426,7 +8426,7 @@ in {

  scikit-survival = callPackage ../development/python-modules/scikit-survival { };

  scs = callPackage ../development/python-modules/scs { scs = pkgs.scs; };
  scs = callPackage ../development/python-modules/scs { };

  sdnotify = callPackage ../development/python-modules/sdnotify { };