2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, anytree
|
2022-12-17 10:02:37 +00:00
|
|
|
, arrayqueues
|
|
|
|
, av
|
|
|
|
, buildPythonPackage
|
|
|
|
, colorspacious
|
|
|
|
, fetchPypi
|
|
|
|
, flammkuchen
|
|
|
|
, git
|
|
|
|
, gitpython
|
2020-04-24 23:36:52 +00:00
|
|
|
, imageio
|
|
|
|
, imageio-ffmpeg
|
2022-12-17 10:02:37 +00:00
|
|
|
, lightparam
|
|
|
|
, matplotlib
|
2020-04-24 23:36:52 +00:00
|
|
|
, nose
|
2022-12-17 10:02:37 +00:00
|
|
|
, numba
|
|
|
|
, numpy
|
2023-11-16 04:20:00 +00:00
|
|
|
, opencv4
|
2022-12-17 10:02:37 +00:00
|
|
|
, pandas
|
|
|
|
, pims
|
|
|
|
, pyqt5
|
|
|
|
, pyqtgraph
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyserial
|
2022-12-17 10:02:37 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, qdarkstyle
|
2020-04-24 23:36:52 +00:00
|
|
|
, qimage2ndarray
|
2023-05-24 13:37:59 +00:00
|
|
|
, scikit-image
|
2022-12-17 10:02:37 +00:00
|
|
|
, 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
|
|
|
nose
|
|
|
|
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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A 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 ];
|
2023-11-16 04:20:00 +00:00
|
|
|
broken = true; # incompatible with pyqtgraph>0.13.0: https://github.com/portugueslab/stytra/issues/87
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|