My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/python-modules/cvxpy/default.nix

52 lines
859 B

{ lib
, pythonOlder
, buildPythonPackage
, fetchPypi
, cvxopt
, ecos
, multiprocess
, numpy
, osqp
, scipy
, scs
, six
# Check inputs
, nose
}:
buildPythonPackage rec {
pname = "cvxpy";
version = "1.0.25";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "04zalvc8lckjfzm3i2ir32ib5pd6v7hxqqcnsnq6fw40vffm4dc5";
};
propagatedBuildInputs = [
cvxopt
ecos
multiprocess
numpy
osqp
scipy
scs
six
];
checkInputs = [ nose ];
checkPhase = ''
nosetests
'';
meta = with lib; {
description = "A domain-specific language for modeling convex optimization problems in Python.";
homepage = "https://www.cvxpy.org/";
downloadPage = "https://github.com/cvxgrp/cvxpy/";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}