python312Packages.pyedflib: init at 0.1.38

This commit is contained in:
Gaetan Lepage
2025-01-02 13:33:49 +01:00
parent 2eecf15ad7
commit 41ea9f4690
2 changed files with 57 additions and 0 deletions
@@ -0,0 +1,55 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
cython,
numpy,
setuptools,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyedflib";
version = "0.1.38";
pyproject = true;
src = fetchFromGitHub {
owner = "holgern";
repo = "pyedflib";
tag = "v${version}";
hash = "sha256-sj2O5ISAy12u4GdtucLaRfOeSA6o6FJpZWTyiLq5B3U=";
};
build-system = [
cython
numpy
setuptools
];
pythonImportsCheck = [
"pyedflib"
];
# Otherwise, the module is imported from source and lacks the compiled artifacts
# By moving to the pyedflib directory, python imports the installed package instead of the module
# from the local files
preCheck = ''
cd pyedflib
'';
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Python library to read/write EDF+/BDF+ files based on EDFlib";
homepage = "https://github.com/holgern/pyedflib";
changelog = "https://github.com/holgern/pyedflib/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
+2
View File
@@ -11619,6 +11619,8 @@ self: super: with self; {
pyecowitt = callPackage ../development/python-modules/pyecowitt { };
pyedflib = callPackage ../development/python-modules/pyedflib { };
pyedimax = callPackage ../development/python-modules/pyedimax { };
pyee = callPackage ../development/python-modules/pyee { };