python311Packages.clarabel: 0.6.0 -> 0.7.0

- update 0.6.0 -> 0.7.0 https://github.com/oxfordcontrol/Clarabel.rs/releases/tag/v0.7.0
- switch to use PyPi as the distribution also contains a Cargo.lock file
- add nix-update-script
This commit is contained in:
annalee 2024-02-27 09:56:53 +00:00
parent 39f5b03232
commit 80aaedf152
No known key found for this signature in database
2 changed files with 12 additions and 1500 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,33 +1,30 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchPypi
, rustPlatform
, libiconv
, numpy
, scipy
, nix-update-script
}:
buildPythonPackage rec {
pname = "clarabel";
version = "0.6.0.post1";
version = "0.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "oxfordcontrol";
repo = "Clarabel.rs";
rev = "refs/tags/v${version}";
hash = "sha256-5Mw+3WRMuz3BxLWRdsnXHjetsNrM3EZRZld8lVTNKgo=";
src = fetchPypi {
inherit pname version;
hash = "sha256-udpW9SKAaoR/Ps4I9fIfq3UG7sMUiyJEYZDeUgbdHm8=";
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-R/o12m2UqKte4H1pvW9DN0YPDhgNIxt0mXrfBDMzcwM=";
};
postPatch = ''
ln -s ${./Cargo.lock} ./Cargo.lock
'';
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
@ -52,6 +49,8 @@ buildPythonPackage rec {
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";