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