2020-05-15 21:57:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, numpy
|
2022-09-30 11:47:45 +00:00
|
|
|
, packaging
|
2020-05-15 21:57:56 +00:00
|
|
|
, quantities
|
2021-08-05 21:33:18 +00:00
|
|
|
, pythonOlder
|
2020-05-15 21:57:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "neo";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "0.12.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-O2yk/AXf206VPiU+cJlL+7yP4ukJWPvaf6WGDK8/pjo=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
2022-09-30 11:47:45 +00:00
|
|
|
packaging
|
2022-03-30 09:31:56 +00:00
|
|
|
quantities
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-30 09:31:56 +00:00
|
|
|
nose
|
|
|
|
];
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests --exclude=iotest
|
|
|
|
'';
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"neo"
|
|
|
|
];
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Package for representing electrophysiology data";
|
2020-05-15 21:57:56 +00:00
|
|
|
homepage = "https://neuralensemble.org/neo/";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://neo.readthedocs.io/en/${version}/releases/${version}.html";
|
2020-05-15 21:57:56 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|