python313Packages.mne: 1.9.0 -> 1.9.0-unstable-2025-05-01
This commit is contained in:
@@ -18,11 +18,15 @@
|
||||
h5io,
|
||||
pymatreader,
|
||||
pythonOlder,
|
||||
procps,
|
||||
optipng,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mne";
|
||||
version = "1.9.0";
|
||||
# https://github.com/mne-tools/mne-python/pull/13049 is required to build, it does not apply if fetchpatch'ed
|
||||
stableVersion = "1.9.0";
|
||||
version = "1.9.0-unstable-2025-05-01";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@@ -30,14 +34,22 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "mne-tools";
|
||||
repo = "mne-python";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-Y9xkp1tji0+muP8+HqogRj5TGKCtpJzapKYWtmGw+F0=";
|
||||
rev = "5df1721b488070e3b3928dface9dd0b8c39a3bef";
|
||||
hash = "sha256-BCLejk0sVym+HRCfnTl5LTOGUMrQdxZbqhrCnIpzsvM=";
|
||||
};
|
||||
|
||||
env.SETUPTOOLS_SCM_PRETEND_VERSION = stableVersion;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "--cov-report=" "" \
|
||||
--replace-fail "--cov-branch" ""
|
||||
|
||||
substituteInPlace doc/conf.py \
|
||||
--replace-fail '"optipng"' '"${lib.getExe optipng}"'
|
||||
substituteInPlace mne/utils/config.py \
|
||||
--replace-fail '"free"' '"${lib.getExe' procps "free"}"' \
|
||||
--replace-fail '"sysctl"' '"${lib.getExe' procps "sysctl"}"'
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
@@ -80,13 +92,16 @@ buildPythonPackage rec {
|
||||
"test_hitachi_basic"
|
||||
];
|
||||
|
||||
# removes 700k lines form pytest log, remove this when scipy is at v1.17.0
|
||||
pytestFlagsArray = [ "--disable-warnings" ];
|
||||
|
||||
pythonImportsCheck = [ "mne" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Magnetoencephelography and electroencephalography in Python";
|
||||
mainProgram = "mne";
|
||||
homepage = "https://mne.tools";
|
||||
changelog = "https://mne.tools/stable/changes/${src.tag}.html";
|
||||
changelog = "https://mne.tools/stable/changes/${stableVersion}.html";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [
|
||||
bcdarwin
|
||||
|
||||
Reference in New Issue
Block a user