File tree Expand file tree Collapse file tree 2 files changed +58
-0
lines changed
development/python-modules/neurokit2 Expand file tree Collapse file tree 2 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -9181,6 +9181,8 @@ self: super: with self; {
9181
9181
9182
9182
neuralfoil = callPackage ../development/python-modules/neuralfoil { };
9183
9183
9184
+ neurokit2 = callPackage ../development/python-modules/neurokit2 { };
9185
+
9184
9186
neuron-full = pkgs.neuron-full.override { python3 = python; };
9185
9187
9186
9188
neuronpy = toPythonModule neuron-full;
You can’t perform that action at this time.
0 commit comments