nixpkgs/pkgs/development/python-modules/stytra/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

92 lines
1.4 KiB
Nix

{
lib,
anytree,
arrayqueues,
av,
buildPythonPackage,
colorspacious,
fetchPypi,
flammkuchen,
git,
gitpython,
imageio,
imageio-ffmpeg,
lightparam,
matplotlib,
numba,
numpy,
opencv4,
pandas,
pims,
pyqt5,
pyqtgraph,
pyserial,
pytestCheckHook,
qdarkstyle,
qimage2ndarray,
scikit-image,
scipy,
setuptools,
tables,
}:
buildPythonPackage rec {
pname = "stytra";
version = "0.8.34";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "aab9d07575ef599a9c0ae505656e3c03ec753462df3c15742f1f768f2b578f0a";
};
patches = [
# https://github.com/portugueslab/stytra/issues/87
./0000-workaround-pyqtgraph.patch
];
build-system = [ setuptools ];
dependencies = [
opencv4
pyqt5
pyqtgraph
numpy
scipy
numba
pandas
tables
git
scikit-image
matplotlib
qdarkstyle
gitpython
anytree
qimage2ndarray
flammkuchen
pims
colorspacious
lightparam
imageio
imageio-ffmpeg
arrayqueues
av
];
nativeCheckInputs = [
pytestCheckHook
pyserial
];
disabledTestPaths = [
# Crashes python
"stytra/tests/test_z_experiments.py"
];
meta = {
description = "Modular package to control stimulation and track behaviour";
homepage = "https://github.com/portugueslab/stytra";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ tbenst ];
};
}