Skip to content

Commit

Permalink
python3Packages.neurotkit2 init at 0.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
genga898 committed Jan 8, 2025
1 parent 31beef9 commit a66a527
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pkgs/development/python-modules/neurokit2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
pytest_7,
scipy,
scikit-learn,
pandas,
matplotlib,
requests,
cvxopt,
biosppy,
}:

buildPythonPackage rec {
pname = "neurokit2";
version = "0.2.10";
pyproject = true;

src = fetchFromGitHub {
owner = "neuropsychology";
repo = "NeuroKit";
tag = "v${version}";
hash = "sha256-e/B1JvO6uYZ6iVskFvxZLSSXi0cPep9bBZ0JXZTVS28=";
};

postPatch = ''
substituteInPlace setup.py \
--replace-fail '"pytest-runner"' '"pytest"'
'';

build-system = [
setuptools
pytest_7
];

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

# Passing tests do not meet coverage criteria
doCheck = false;

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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9183,6 +9183,8 @@ self: super: with self; {

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

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

neuron-full = pkgs.neuron-full.override { python3 = python; };

neuronpy = toPythonModule neuron-full;
Expand Down

0 comments on commit a66a527

Please sign in to comment.