Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, stdenv, buildPythonPackage, fetchPypi, rustPlatform, libiconv, numpy, scipy, nix-update-script,}:
buildPythonPackage rec { pname = "clarabel"; version = "0.10.0"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-qKIQUFj9fbVHGL5TxIcVpQkQUAsQ/wuPU4BDTmnBChA="; };
cargoDeps = rustPlatform.fetchCargoVendor { inherit pname version src; hash = "sha256-Ohbeavkayl6vMyYX9kVVLRddvVB9gWOxfzdWAOg+gac="; };
nativeBuildInputs = with rustPlatform; [ cargoSetupHook maturinBuildHook ];
buildInputs = lib.optional stdenv.hostPlatform.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 '';
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 = [ ]; };}