pyjecteur/shell.nix

41 lines
664 B
Nix
Raw Normal View History

2024-10-09 23:46:35 +02:00
{
nixpkgs ? (import ./npins).nixpkgs
, pkgs ? import nixpkgs {}
}:
let
python = pkgs.python3.override {
packageOverrides = self: super: {
pyjecteur = self.callPackage ./pyjecteur.nix {};
};
};
in
{
dev = pkgs.mkShell {
packages = [
2024-10-13 20:52:03 +02:00
(pkgs.python3.withPackages (ps: [
2024-10-09 23:46:35 +02:00
# build dep
ps.pyserial
ps.colour
# dev dep
ps.black
ps.pylint
ps.ipython
]))
pkgs.pyright
];
};
prod = pkgs.mkShell {
packages = [
(python.withPackages (ps: [
ps.pyjecteur
ps.ipython
ps.black
ps.pylint
]))
pkgs.pyright
];
};
}