From 60829ec4a11b059281d385468d19d3e61e44c4f4 Mon Sep 17 00:00:00 2001 From: tbenst Date: Thu, 31 Oct 2019 14:00:29 -0700 Subject: [PATCH] python3packages.stytra: init at 0.8.26 --- .../python-modules/flammkuchen/default.nix | 5 +- .../python-modules/stytra/default.nix | 81 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 3 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/python-modules/stytra/default.nix diff --git a/pkgs/development/python-modules/flammkuchen/default.nix b/pkgs/development/python-modules/flammkuchen/default.nix index 7cc309e38c34..3a3d82cd8bbf 100644 --- a/pkgs/development/python-modules/flammkuchen/default.nix +++ b/pkgs/development/python-modules/flammkuchen/default.nix @@ -1,9 +1,10 @@ -{ lib, pkgs, buildPythonPackage, fetchPypi, isPy3k +{ lib, pkgs, buildPythonPackage, fetchPypi, isPy27 , numpy , scipy , tables , pandas , nose +, configparser }: buildPythonPackage rec { @@ -24,7 +25,7 @@ buildPythonPackage rec { scipy tables pandas - ]; + ] ++ lib.optionals isPy27 [ configparser ]; meta = { homepage = "https://github.com/portugueslab/flammkuchen"; diff --git a/pkgs/development/python-modules/stytra/default.nix b/pkgs/development/python-modules/stytra/default.nix new file mode 100644 index 000000000000..a564798c58a5 --- /dev/null +++ b/pkgs/development/python-modules/stytra/default.nix @@ -0,0 +1,81 @@ +{ lib, pkgs, buildPythonPackage, fetchPypi, isPy3k, callPackage +, opencv3 +, pyqt5 +, pyqtgraph +, numpy +, scipy +, numba +, pandas +, tables +, git +, ffmpeg +, scikitimage +, matplotlib +, qdarkstyle +, GitPython +, anytree +, pims +, imageio +, imageio-ffmpeg +, av +, nose +, pytest +, pyserial +, arrayqueues +, colorspacious +, qimage2ndarray +, flammkuchen +, lightparam +}: + +buildPythonPackage rec { + pname = "stytra"; + version = "0.8.26"; + disabled = !isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "81842a957e3114230c2d628f64325cd89d166913b68c3f802c89282f40918587"; + }; + doCheck = false; + checkInputs = [ + nose + pytest + pyserial + ]; + + + propagatedBuildInputs = [ + opencv3 + pyqt5 + pyqtgraph + numpy + scipy + numba + pandas + tables + git + ffmpeg + scikitimage + matplotlib + qdarkstyle + GitPython + anytree + qimage2ndarray + flammkuchen + pims + colorspacious + lightparam + imageio + imageio-ffmpeg + arrayqueues + av + ]; + + meta = { + homepage = "https://github.com/portugueslab/stytra"; + description = "A modular package to control stimulation and track behaviour"; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ tbenst ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7617a8fb2151..c40bbf19e9fc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5255,6 +5255,8 @@ in { structlog = callPackage ../development/python-modules/structlog { }; + stytra = callPackage ../development/python-modules/stytra { }; + sybil = callPackage ../development/python-modules/sybil { }; # legacy alias