diff options
author | Karel Kočí <cynerd@email.cz> | 2023-03-14 18:18:00 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2023-03-14 18:18:00 +0100 |
commit | 56c7731dc7f1cd4aef2fcaa5f13ba2317f9f8af1 (patch) | |
tree | 2616a5c635a40ab0a556e8547bd8b826a9efa310 /devShells | |
parent | 9b4622bd6475f16da561c3a8399da18a70d23be0 (diff) | |
download | nixos-personal-56c7731dc7f1cd4aef2fcaa5f13ba2317f9f8af1.tar.gz nixos-personal-56c7731dc7f1cd4aef2fcaa5f13ba2317f9f8af1.tar.bz2 nixos-personal-56c7731dc7f1cd4aef2fcaa5f13ba2317f9f8af1.zip |
devShells: add python development environment
This is mainly to get GTK working in Python.
Diffstat (limited to 'devShells')
-rw-r--r-- | devShells/default.nix | 1 | ||||
-rw-r--r-- | devShells/python.nix | 58 |
2 files changed, 59 insertions, 0 deletions
diff --git a/devShells/default.nix b/devShells/default.nix index c87522f..b0a1728 100644 --- a/devShells/default.nix +++ b/devShells/default.nix @@ -22,6 +22,7 @@ espc = callDevelop ./nuttx.nix {arch = "rv32imc";}; c = callDevelop ./c.nix {}; qt = callDevelop ./qt.nix {}; + python = callDevelop ./python.nix {}; apo = callDevelop ./apo.nix {}; }; in 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; + } |