Skip to content

Commit 8a1c356

Browse files
committed
python3Packages.neurotkit2: init at 0.2.10
1 parent 29bd96a commit 8a1c356

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
python3Packages,
5+
buildPythonPackage,
6+
}:
7+
8+
buildPythonPackage rec {
9+
pname = "neurokit2";
10+
version = "0.2.10";
11+
pyproject = true;
12+
13+
src = fetchFromGitHub {
14+
owner = "neuropsychology";
15+
repo = "NeuroKit";
16+
tag = "v${version}";
17+
hash = "sha256-e/B1JvO6uYZ6iVskFvxZLSSXi0cPep9bBZ0JXZTVS28=";
18+
};
19+
20+
postPatch = ''
21+
substituteInPlace setup.py \
22+
--replace-fail '"pytest-runner"' '"pytest"'
23+
'';
24+
25+
build-system = with python3Packages; [
26+
setuptools
27+
wheel
28+
pytest_7
29+
];
30+
31+
dependencies = with python3Packages; [
32+
scipy
33+
scikit-learn
34+
pandas
35+
matplotlib
36+
requests
37+
cvxopt
38+
biosppy
39+
40+
# Test Dependencies
41+
pytest-cov
42+
mock
43+
];
44+
45+
pythonImportsCheck = [
46+
"neurokit2"
47+
];
48+
49+
meta = {
50+
description = "Python Toolbox for Neurophysiological Signal Processing";
51+
homepage = "https://github.com/neuropsychology/NeuroKit";
52+
license = lib.licenses.mit;
53+
maintainers = with lib.maintainers; [ genga898 ];
54+
mainProgram = "neurokit2";
55+
};
56+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9181,6 +9181,8 @@ self: super: with self; {
91819181

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

9184+
neurokit2 = callPackage ../development/python-modules/neurokit2 { };
9185+
91849186
neuron-full = pkgs.neuron-full.override { python3 = python; };
91859187

91869188
neuronpy = toPythonModule neuron-full;

0 commit comments

Comments
 (0)