1{ lib
2, pythonOlder
3, buildPythonPackage
4, fetchPypi
5, cvxopt
6, ecos
7, multiprocess
8, numpy
9, osqp
10, scipy
11, scs
12, six
13 # Check inputs
14, pytestCheckHook
15, nose
16}:
17
18buildPythonPackage rec {
19 pname = "cvxpy";
20 version = "1.1.5";
21
22 disabled = pythonOlder "3.5";
23
24 src = fetchPypi {
25 inherit pname version;
26 sha256 = "7c826a874db2e4cefe54e63ebd3a3763d0d72e55a17c7d1cfec80008a87b8d81";
27 };
28
29 propagatedBuildInputs = [
30 cvxopt
31 ecos
32 multiprocess
33 numpy
34 osqp
35 scipy
36 scs
37 six
38 ];
39
40 checkInputs = [ pytestCheckHook nose ];
41 pytestFlagsArray = [ "./cvxpy" ];
42 # Disable the slowest benchmarking tests, cuts test time in half
43 disabledTests = [
44 "test_tv_inpainting"
45 "test_diffcp_sdp_example"
46 ];
47
48 meta = with lib; {
49 description = "A domain-specific language for modeling convex optimization problems in Python.";
50 homepage = "https://www.cvxpy.org/";
51 downloadPage = "https://github.com/cvxgrp/cvxpy/releases";
52 changelog = "https://github.com/cvxgrp/cvxpy/releases/tag/v${version}";
53 license = licenses.asl20;
54 maintainers = with maintainers; [ drewrisinger ];
55 };
56}