2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
anytree,
|
|
|
|
arrayqueues,
|
|
|
|
av,
|
|
|
|
buildPythonPackage,
|
|
|
|
colorspacious,
|
|
|
|
fetchPypi,
|
|
|
|
flammkuchen,
|
|
|
|
git,
|
|
|
|
gitpython,
|
|
|
|
imageio,
|
|
|
|
imageio-ffmpeg,
|
|
|
|
lightparam,
|
|
|
|
matplotlib,
|
|
|
|
numba,
|
|
|
|
numpy,
|
|
|
|
opencv4,
|
|
|
|
pandas,
|
|
|
|
pims,
|
|
|
|
pyqt5,
|
|
|
|
pyqtgraph,
|
|
|
|
pyserial,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
qdarkstyle,
|
|
|
|
qimage2ndarray,
|
|
|
|
scikit-image,
|
|
|
|
scipy,
|
|
|
|
tables,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "stytra";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "0.8.34";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2022-12-17 10:02:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "aab9d07575ef599a9c0ae505656e3c03ec753462df3c15742f1f768f2b578f0a";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/portugueslab/stytra/issues/87
|
|
|
|
./0000-workaround-pyqtgraph.patch
|
|
|
|
];
|
2021-02-17 17:02:09 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
opencv4
|
2020-04-24 23:36:52 +00:00
|
|
|
pyqt5
|
|
|
|
pyqtgraph
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
numba
|
|
|
|
pandas
|
|
|
|
tables
|
|
|
|
git
|
2023-05-24 13:37:59 +00:00
|
|
|
scikit-image
|
2020-04-24 23:36:52 +00:00
|
|
|
matplotlib
|
|
|
|
qdarkstyle
|
2022-12-17 10:02:37 +00:00
|
|
|
gitpython
|
2020-04-24 23:36:52 +00:00
|
|
|
anytree
|
|
|
|
qimage2ndarray
|
|
|
|
flammkuchen
|
|
|
|
pims
|
|
|
|
colorspacious
|
|
|
|
lightparam
|
|
|
|
imageio
|
|
|
|
imageio-ffmpeg
|
|
|
|
arrayqueues
|
|
|
|
av
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pyserial
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Crashes python
|
|
|
|
"stytra/tests/test_z_experiments.py"
|
|
|
|
];
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Modular package to control stimulation and track behaviour";
|
2022-12-17 10:02:37 +00:00
|
|
|
homepage = "https://github.com/portugueslab/stytra";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ tbenst ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|