1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 packaging,
7 quantities,
8 pythonOlder,
9 setuptools,
10 pytestCheckHook,
11 pillow,
12 which,
13}:
14
15buildPythonPackage rec {
16 pname = "neo";
17 version = "0.14.2";
18 pyproject = true;
19
20 disabled = pythonOlder "3.8";
21
22 src = fetchFromGitHub {
23 owner = "NeuralEnsemble";
24 repo = "python-neo";
25 tag = version;
26 hash = "sha256-THAdUFCbteiUdfhjLzl6ocM2I0zFKHfFxJExCnK1z1Y=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 numpy
33 packaging
34 quantities
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 pillow
40 which
41 ];
42
43 disabledTestPaths = [
44 # Requires network and export HOME dir
45 "neo/test/rawiotest/test_maxwellrawio.py"
46 ];
47
48 pythonImportsCheck = [ "neo" ];
49
50 meta = with lib; {
51 description = "Package for representing electrophysiology data";
52 homepage = "https://neuralensemble.org/neo/";
53 changelog = "https://neo.readthedocs.io/en/${src.tag}/releases/${src.tag}.html";
54 license = licenses.bsd3;
55 maintainers = with maintainers; [ bcdarwin ];
56 };
57}