12 buildPythonPackage rec {
18 inherit pname version;
19 hash = "sha256-owqxNfR1xbx4Mp/X31dSkRVeYFW8rwISTrYQuK0XY5Y=";
22 cargoDeps = rustPlatform.fetchCargoTarball {
24 name = "${pname}-${version}";
25 hash = "sha256-Tg9K66WIIAZyua8QlKrlUnpRJRmuxe7ihIr2Vqg79NQ=";
28 nativeBuildInputs = with rustPlatform; [
33 buildInputs = lib.optional stdenv.isDarwin libiconv;
35 propagatedBuildInputs = [
40 pythonImportsCheck = [
44 # no tests but run the same examples as .github/workflows/pypi.yaml
47 python examples/python/example_sdp.py
48 python examples/python/example_qp.py
52 passthru.updateScript = nix-update-script { };
55 changelog = "https://github.com/oxfordcontrol/Clarabel.rs/releases/tag/v${version}/CHANGELOG.md";
56 description = "Conic Interior Point Solver";
57 homepage = "https://github.com/oxfordcontrol/Clarabel.rs";
58 license = lib.licenses.asl20;