1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 nose,
6 numpy,
7 packaging,
8 quantities,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "neo";
15 version = "0.13.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-gVhbKLZaTciakucc7TlCxdv9qnG90sw4U3G3ebVlTK0=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [
28 numpy
29 packaging
30 quantities
31 ];
32
33 nativeCheckInputs = [ nose ];
34
35 checkPhase = ''
36 nosetests --exclude=iotest
37 '';
38
39 pythonImportsCheck = [ "neo" ];
40
41 meta = with lib; {
42 description = "Package for representing electrophysiology data";
43 homepage = "https://neuralensemble.org/neo/";
44 changelog = "https://neo.readthedocs.io/en/${version}/releases/${version}.html";
45 license = licenses.bsd3;
46 maintainers = with maintainers; [ bcdarwin ];
47 };
48}