python311Packages.clarabel: init at v0.6.0.post1
This commit is contained in:
parent
0032a648ec
commit
2e1448950f
3 changed files with 1551 additions and 0 deletions
1487
pkgs/development/python-modules/clarabel/Cargo.lock
generated
Normal file
1487
pkgs/development/python-modules/clarabel/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
62
pkgs/development/python-modules/clarabel/default.nix
Normal file
62
pkgs/development/python-modules/clarabel/default.nix
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, rustPlatform
|
||||||
|
, libiconv
|
||||||
|
, numpy
|
||||||
|
, scipy
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "clarabel";
|
||||||
|
version = "0.6.0.post1";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "oxfordcontrol";
|
||||||
|
repo = "Clarabel.rs";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-5Mw+3WRMuz3BxLWRdsnXHjetsNrM3EZRZld8lVTNKgo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoDeps = rustPlatform.importCargoLock {
|
||||||
|
lockFile = ./Cargo.lock;
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
ln -s ${./Cargo.lock} ./Cargo.lock
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = with rustPlatform; [
|
||||||
|
cargoSetupHook
|
||||||
|
maturinBuildHook
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
numpy
|
||||||
|
scipy
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"clarabel"
|
||||||
|
];
|
||||||
|
|
||||||
|
# no tests but run the same examples as .github/workflows/pypi.yaml
|
||||||
|
checkPhase = ''
|
||||||
|
runHook preCheck
|
||||||
|
python examples/python/example_sdp.py
|
||||||
|
python examples/python/example_qp.py
|
||||||
|
runHook postCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
changelog = "https://github.com/oxfordcontrol/Clarabel.rs/releases/tag/v${version}/CHANGELOG.md";
|
||||||
|
description = "Conic Interior Point Solver";
|
||||||
|
homepage = "https://github.com/oxfordcontrol/Clarabel.rs";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
maintainers = with lib.maintainers; [ a-n-n-a-l-e-e ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2081,6 +2081,8 @@ self: super: with self; {
|
||||||
|
|
||||||
ckcc-protocol = callPackage ../development/python-modules/ckcc-protocol { };
|
ckcc-protocol = callPackage ../development/python-modules/ckcc-protocol { };
|
||||||
|
|
||||||
|
clarabel = callPackage ../development/python-modules/clarabel { };
|
||||||
|
|
||||||
clarifai = callPackage ../development/python-modules/clarifai { };
|
clarifai = callPackage ../development/python-modules/clarifai { };
|
||||||
|
|
||||||
clarifai-grpc = callPackage ../development/python-modules/clarifai-grpc { };
|
clarifai-grpc = callPackage ../development/python-modules/clarifai-grpc { };
|
||||||
|
|
Loading…
Reference in a new issue