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.12.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-O2yk/AXf206VPiU+cJlL+7yP4ukJWPvaf6WGDK8/pjo=";
21 };
22
23 propagatedBuildInputs = [
24 numpy
25 packaging
26 quantities
27 ];
28
29 nativeCheckInputs = [
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 changelog = "https://neo.readthedocs.io/en/${version}/releases/${version}.html";
45 license = licenses.bsd3;
46 maintainers = with maintainers; [ bcdarwin ];
47 };
48}