Merge pull request #291772 from a-n-n-a-l-e-e/clarabel-update

python311Packages.clarabel: 0.6.0 -> 0.7.0
This commit is contained in:
Mario Rodas 2024-02-27 08:40:06 -05:00 committed by GitHub
commit 8fc4d11709
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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";