13 buildPythonPackage rec {
19 inherit pname version;
20 hash = "sha256-DW0/6IAL5bS11AqOFL1JJmez5GzF2+N2d85e0l8HGdQ=";
23 cargoDeps = rustPlatform.fetchCargoTarball {
25 name = "${pname}-${version}";
26 hash = "sha256-NNvrDXBodrO3bxr4X1HEn5uHmHDJ1s9C70lPv7OkSCo=";
29 nativeBuildInputs = with rustPlatform; [
34 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
36 propagatedBuildInputs = [
41 pythonImportsCheck = [ "clarabel" ];
43 # no tests but run the same examples as .github/workflows/pypi.yaml
46 python examples/python/example_sdp.py
47 python examples/python/example_qp.py
51 passthru.updateScript = nix-update-script { };
54 changelog = "https://github.com/oxfordcontrol/Clarabel.rs/releases/tag/v${version}/CHANGELOG.md";
55 description = "Conic Interior Point Solver";
56 homepage = "https://github.com/oxfordcontrol/Clarabel.rs";
57 license = lib.licenses.asl20;