Skip to content

Commit

Permalink
python3Packages.biosppy: init at 2.2.2
Browse files Browse the repository at this point in the history
python3Packages.neurokit2: add changelog

python3Packages.biosppy: change build-system to dependencies and add changelog
  • Loading branch information
genga898 committed Jan 7, 2025
1 parent 8a1c356 commit 16d3360
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 7 deletions.
58 changes: 58 additions & 0 deletions pkgs/development/python-modules/biosppy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
bidict,
h5py,
matplotlib,
numpy,
scikit-learn,
scipy,
shortuuid,
six,
joblib,
pywavelets,
mock,
}:

buildPythonPackage rec {
pname = "biosppy";
version = "2.2.2";

src = fetchFromGitHub {
owner = "scientisst";
repo = "BioSPPy";
tag = "v${version}";
hash = "sha256-U0ZftAlRlazSO66raH74o/6eP1RpmuFoA6HJ+xmgKR8=";
};

dependencies = [
bidict
h5py
matplotlib
numpy
scikit-learn
scipy
shortuuid
six
joblib
pywavelets
];

nativeCheckInputs = [
mock
];

pythonImportsCheck = [
"biosppy"
];

meta = {
description = "Biosignal Processing in Python";
homepage = "https://github.com/scientisst/BioSPPy";
changelog = "https://github.com/scientisst/BioSPPy/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ genga898 ];
mainProgram = "biosppy";
};
}
22 changes: 15 additions & 7 deletions pkgs/development/python-modules/neurokit2/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{
lib,
fetchFromGitHub,
python3Packages,
buildPythonPackage,
setuptools,
wheel,
pytest_7,
scipy,
scikit-learn,
pandas,
matplotlib,
requests,
cvxopt,
biosppy,
}:

buildPythonPackage rec {
Expand All @@ -22,33 +31,32 @@ buildPythonPackage rec {
--replace-fail '"pytest-runner"' '"pytest"'
'';

build-system = with python3Packages; [
build-system = [
setuptools
wheel
pytest_7
];

dependencies = with python3Packages; [
dependencies = [
scipy
scikit-learn
pandas
matplotlib
requests
cvxopt
biosppy

# Test Dependencies
pytest-cov
mock
];

# Skipped tests cause they get stuck after the fifth one

pythonImportsCheck = [
"neurokit2"
];

meta = {
description = "Python Toolbox for Neurophysiological Signal Processing";
homepage = "https://github.com/neuropsychology/NeuroKit";
changelog = "https://github.com/neuropsychology/NeuroKit/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ genga898 ];
mainProgram = "neurokit2";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1677,6 +1677,8 @@ self: super: with self; {

biopython = callPackage ../development/python-modules/biopython { };

biosppy = callPackage ../development/python-modules/biosppy { };

biothings-client = callPackage ../development/python-modules/biothings-client { };

biplist = callPackage ../development/python-modules/biplist { };
Expand Down

0 comments on commit 16d3360

Please sign in to comment.