mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
47 lines
770 B
Nix
47 lines
770 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, numpy
|
|
, packaging
|
|
, quantities
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "neo";
|
|
version = "0.11.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-zfjhMko/u9Hv1WGNzTfPxJexmXkjvXELWYRywdhGZ0o=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
packaging
|
|
quantities
|
|
];
|
|
|
|
checkInputs = [
|
|
nose
|
|
];
|
|
|
|
checkPhase = ''
|
|
nosetests --exclude=iotest
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"neo"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Package for representing electrophysiology data";
|
|
homepage = "https://neuralensemble.org/neo/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
};
|
|
}
|