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