Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 61 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ lib, stdenv, buildPythonPackage, fetchPypi, rustPlatform, libiconv, cffi, numpy, scipy, nix-update-script,}:
buildPythonPackage rec { pname = "clarabel"; version = "0.11.1"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-58QcR/Dlmuq5mu//nlivSodT7lJpu+7L1VJvxvQblZg="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-Cmxbz1zPA/J7EeJhGfD4Zt+QvyJK6BOZ+YQAsf8H+is="; };
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
dependencies = [ cffi 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 '';
passthru.updateScript = nix-update-script { };
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 = [ ]; };}