Skip to content

Commit

Permalink
python312Packages.scipy: cleaning + inputs sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar authored and GaetanLepage committed Aug 28, 2024
1 parent 5d63abe commit 34123fc
Showing 1 changed file with 39 additions and 31 deletions.
70 changes: 39 additions & 31 deletions pkgs/development/python-modules/scipy/default.nix
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
fetchurl,
writeText,
xcbuild,
python,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,

# build-system
cython,
gfortran,
meson-python,
nukeReferences,
pkg-config,
pythran,
wheel,
pkg-config,
setuptools,
hypothesis,
pytest7CheckHook,
pytest-xdist,
numpy,
pybind11,
pooch,
xsimd,
xcbuild,

# buildInputs
# Upstream has support for using Darwin's Accelerate package. However this
# requires a Darwin user to work on a nice way to do that via an override.
# See:
# https://github.com/scipy/scipy/blob/v1.14.0/scipy/meson.build#L194-L211
blas,
lapack,
pybind11,
pooch,
xsimd,

# dependencies
numpy,

# tests
hypothesis,
pytest7CheckHook,
pytest-xdist,

# Reverse dependency
sage,
Expand Down Expand Up @@ -66,12 +73,12 @@ let
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
pyproject = true;

src = fetchFromGitHub {
owner = "scipy";
repo = pname;
rev = "v${version}";
repo = "scipy";
rev = "refs/tags/v${version}";
hash = srcHash;
fetchSubmodules = true;
};
Expand All @@ -95,22 +102,23 @@ buildPythonPackage {
--replace-fail "pybind11>=2.12.0,<2.13.0" "pybind11>=2.12.0" \
'';

build-system = [
cython
gfortran
meson-python
nukeReferences
pythran
pkg-config
wheel
setuptools
] ++ lib.optionals stdenv.isDarwin [
# Minimal version required according to:
# https://github.com/scipy/scipy/blob/v1.14.0/scipy/meson.build#L185-L188
(xcbuild.override {
sdkVer = "13.3";
})
];
build-system =
[
cython
gfortran
meson-python
nukeReferences
pythran
pkg-config
setuptools
]
++ lib.optionals stdenv.isDarwin [
# Minimal version required according to:
# https://github.com/scipy/scipy/blob/v1.14.0/scipy/meson.build#L185-L188
(xcbuild.override {
sdkVer = "13.3";
})
];

buildInputs = [
blas
Expand Down

0 comments on commit 34123fc

Please sign in to comment.