pyjecteur/shell.nix

42 lines
697 B
Nix
Raw Normal View History

2023-12-09 16:31:17 +01:00
{
nixpkgs ? (import ./npins).nixpkgs
, pkgs ? import nixpkgs {}
}:
let
python = pkgs.python310.override {
packageOverrides = self: super: {
pyjecteur = self.callPackage ./pyjecteur.nix {};
};
};
in
{
dev = pkgs.mkShell {
packages = [
(pkgs.python310.withPackages (ps: [
# build dep
ps.pyserial
ps.colour
# dev dep
ps.black
ps.pylint
ps.ipython
ps.python-lsp-server
2023-12-09 16:31:17 +01:00
]))
pkgs.pyright
];
};
prod = pkgs.mkShell {
packages = [
(python.withPackages (ps: [
ps.pyjecteur
ps.ipython
ps.black
ps.pylint
]))
pkgs.pyright
];
};
}