-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Cvxpy #59518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cvxpy #59518
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| { buildPythonPackage | ||
| , fetchPypi | ||
| , osqp | ||
| , ecos | ||
| , scs | ||
| , multiprocess | ||
| , fastcache | ||
| , six | ||
| , numpy | ||
| , scipy | ||
| , nose | ||
| , lib | ||
| }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "cvxpy"; | ||
| version = "1.0.21"; | ||
|
|
||
| propagatedBuildInputs = [ | ||
| osqp ecos scs multiprocess fastcache six numpy scipy | ||
| ]; | ||
|
|
||
| checkInputs = [ nose ]; | ||
|
|
||
| src = fetchPypi { | ||
| inherit pname version; | ||
| sha256 = "11hdrgdcb7idncrbr00rmrxhi7f8sjm134x4wgqkkxwppklk36xv"; | ||
| }; | ||
|
|
||
| # Tests not discovered correctly on python3 unless nosetests invoked | ||
| # explicitly. | ||
| checkPhase = "nosetests -v"; | ||
|
|
||
| meta = { | ||
| description = "A Python-embedded modeling language for convex optimization problems"; | ||
| homepage = https://www.cvxpy.org; | ||
| license = lib.licenses.asl20; | ||
| maintainers = [ lib.maintainers.teh ]; | ||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { buildPythonPackage, fetchPypi, lib, numpy, scipy, nose }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "ecos"; | ||
| version = "2.0.7.post1"; | ||
|
|
||
| propagatedBuildInputs = [ | ||
| numpy | ||
| scipy | ||
| ]; | ||
| checkInputs = [ nose ]; | ||
|
|
||
| src = fetchPypi { | ||
| inherit pname version; | ||
| sha256 = "0n67plhclbsxqi23is8rj62vv3d75nnwzhsmya9jlbpknd10zsc3"; | ||
| }; | ||
|
|
||
| meta = { | ||
| description = "This is the Python package for ECOS: Embedded Cone Solver"; | ||
| homepage = https://github.com/embotech/ecos; | ||
| license = lib.licenses.gpl3; | ||
| maintainers = [ lib.maintainers.teh ]; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| { buildPythonPackage, fetchFromGitHub, lib, numpy, scipy, future, cmake }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "osqp-python"; | ||
| version = "2.0a1"; | ||
|
|
||
| nativeBuildInputs = [ cmake ]; | ||
| dontUseCmakeConfigure = true; | ||
|
|
||
| propagatedBuildInputs = [ numpy future scipy ]; | ||
|
|
||
| src = fetchFromGitHub { | ||
| owner = "oxfordcontrol"; | ||
| repo = "osqp-python"; | ||
| rev = "v0.5.0"; | ||
| fetchSubmodules = true; | ||
|
||
| sha256 = "1x65mmm9sq189ncgm1fha245krk2y7aq0gw3g1fld0z36zrs9ynz"; | ||
| }; | ||
|
|
||
| meta = { | ||
| description = "Python interface for OSQP"; | ||
| homepage = https://osqp.org; | ||
| license = lib.licenses.asl20; | ||
| maintainers = [ lib.maintainers.teh ]; | ||
| }; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| { buildPythonPackage, fetchPypi, lib, numpy, scipy }: | ||
|
|
||
| buildPythonPackage rec { | ||
| pname = "scs"; | ||
| version = "2.1.0"; | ||
|
|
||
| propagatedBuildInputs = [ | ||
| numpy | ||
| scipy | ||
| ]; | ||
|
|
||
| src = fetchPypi { | ||
| inherit pname version; | ||
| sha256 = "1m45366lfkv71mhdmr10ch7wgn16n79rg75jxqizqcgg6r5s6rqx"; | ||
| }; | ||
|
|
||
| meta = { | ||
| description = "scs: splitting conic solver"; | ||
| homepage = https://github.com/cvxgrp/scs; | ||
| license = lib.licenses.mit; | ||
| maintainers = [ lib.maintainers.teh ]; | ||
| }; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done