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:
parent
39f5b03232
commit
80aaedf152
1487
pkgs/development/python-modules/clarabel/Cargo.lock
generated
1487
pkgs/development/python-modules/clarabel/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user