18 assert (!blas.isILP64) && (!lapack.isILP64);
20 buildPythonPackage rec {
23 format = "setuptools";
25 disabled = isPyPy; # hangs at [translation:info]
28 inherit pname version;
29 hash = "sha256-NGH6QsGyJAuk2h2YXKc1A5FBV/xMd0FzJ+1tfYWs2+Y=";
37 # similar to Gsl, glpk, fftw there is also a dsdp interface
38 # but dsdp is not yet packaged in nixpkgs
41 CVXOPT_BLAS_LIB = "blas";
42 CVXOPT_LAPACK_LIB = "lapack";
43 CVXOPT_BUILD_DSDP = "0";
44 CVXOPT_SUITESPARSE_LIB_DIR = "${lib.getLib suitesparse}/lib";
45 CVXOPT_SUITESPARSE_INC_DIR = "${lib.getDev suitesparse}/include";
47 // lib.optionalAttrs withGsl {
48 CVXOPT_BUILD_GSL = "1";
49 CVXOPT_GSL_LIB_DIR = "${lib.getLib gsl}/lib";
50 CVXOPT_GSL_INC_DIR = "${lib.getDev gsl}/include";
52 // lib.optionalAttrs withGlpk {
53 CVXOPT_BUILD_GLPK = "1";
54 CVXOPT_GLPK_LIB_DIR = "${lib.getLib glpk}/lib";
55 CVXOPT_GLPK_INC_DIR = "${lib.getDev glpk}/include";
57 // lib.optionalAttrs withFftw {
58 CVXOPT_BUILD_FFTW = "1";
59 CVXOPT_FFTW_LIB_DIR = "${lib.getLib fftw}/lib";
60 CVXOPT_FFTW_INC_DIR = "${lib.getDev fftw}/include";
63 nativeCheckInputs = [ unittestCheckHook ];
65 unittestFlagsArray = [
71 homepage = "https://cvxopt.org/";
72 description = "Python Software for Convex Optimization";
74 CVXOPT is a free software package for convex optimization based on the
75 Python programming language. It can be used with the interactive
76 Python interpreter, on the command line by executing Python scripts,
77 or integrated in other software via Python extension modules. Its main
78 purpose is to make the development of software for convex optimization
79 applications straightforward by building on Python's extensive
80 standard library and on the strengths of Python as a high-level
83 maintainers = with maintainers; [ edwtjo ];
84 license = licenses.gpl3Plus;