mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 10:44:18 +00:00
python311Packages.scs: 3.2.3 -> 3.2.4
This commit is contained in:
parent
eb942c46f7
commit
4da393a64e
@ -2,6 +2,9 @@
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, meson-python
|
||||
, pkg-config
|
||||
, Accelerate
|
||||
, blas
|
||||
, lapack
|
||||
@ -13,22 +16,37 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "scs";
|
||||
version = "3.2.3";
|
||||
version = "3.2.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bodono";
|
||||
repo = "scs-python";
|
||||
rev = version;
|
||||
hash = "sha256-/5yGvZy3luGQkbYcsb/6TZLYou91lpA3UKONviMVpuM=";
|
||||
hash = "sha256-UmMbnj7QZSvHWSUk1Qa0VP4i3iDCYHxoa+qBmEdFjRs=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
env = lib.optionalAttrs (!stdenv.isDarwin) {
|
||||
# provide lib locations in env vars as numpy distutils 1.26.1 and later
|
||||
# does not
|
||||
BLAS = lib.getLib blas;
|
||||
LAPACK = lib.getLib lapack;
|
||||
};
|
||||
patches = [
|
||||
# needed for building against netlib's reference blas implementation and
|
||||
# the pkg-config patch. remove on next update
|
||||
(fetchpatch {
|
||||
name = "find-and-ld-lapack.patch";
|
||||
url = "https://github.com/bodono/scs-python/commit/a0aea80e7d490770d6a47d2c79396f6c3341c1f9.patch";
|
||||
hash = "sha256-yHF8f7SLoG7veZ6DEq1HVH6rT2KtFONwJtqSiKcxOdg=";
|
||||
})
|
||||
# add support for pkg-config. remove on next update
|
||||
(fetchpatch {
|
||||
name = "use-pkg-config.patch";
|
||||
url = "https://github.com/bodono/scs-python/commit/dd17e2e5282ebe85f2df8a7c6b25cfdeb894970d.patch";
|
||||
hash = "sha256-vSeSJeeu5Wx3RXPyB39YTo0RU8HtAojrUw85Q76/QzA=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson-python
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = if stdenv.isDarwin then [
|
||||
Accelerate
|
||||
@ -61,6 +79,6 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/cvxgrp/scs"; # upstream C package
|
||||
downloadPage = "https://github.com/bodono/scs-python";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ drewrisinger ];
|
||||
maintainers = with maintainers; [ a-n-n-a-l-e-e drewrisinger ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user