mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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:
commit
8fc4d11709
2 changed files with 12 additions and 1500 deletions
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 a new issue