From 56c7731dc7f1cd4aef2fcaa5f13ba2317f9f8af1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 14 Mar 2023 18:18:00 +0100 Subject: devShells: add python development environment This is mainly to get GTK working in Python. --- devShells/python.nix | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 devShells/python.nix (limited to 'devShells/python.nix') diff --git a/devShells/python.nix b/devShells/python.nix new file mode 100644 index 0000000..570840d --- /dev/null +++ b/devShells/python.nix @@ -0,0 +1,58 @@ +{ + system, + nixpkgs, + default, +}: let + pkgs = nixpkgs.legacyPackages.${system}; +in + pkgs.mkShell { + packages = with pkgs; [ + (python3.withPackages (pypkgs: + with pypkgs; [ + ipython + + pytest + pytest-html + pytest-tap + coverage + python-lsp-black + pylint + pydocstyle + mypy + + pygraphviz + matplotlib + + python-gitlab + PyGithub + + schema + jinja2 + ruamel-yaml + msgpack + urllib3 + + influxdb-client + psycopg + paho-mqtt + + humanize + rich + + pygobject3 + + pyserial + pylibftdi + pylxd + selenium + ])) + geckodriver + chromedriver + + gobject-introspection + gtk3 + gtk4 + ]; + inputsFrom = with pkgs; [default]; + meta.platforms = nixpkgs.lib.platforms.linux; + } -- cgit v1.2.3