housekeeping, update poetry and flake.nix

This commit is contained in:
Istvan Ruzman
2021-07-23 10:40:22 +02:00
parent 36885452ce
commit 804063a507
7 changed files with 466 additions and 476 deletions

29
flake.nix Normal file
View File

@@ -0,0 +1,29 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem(system:
let
pkgs = import nixpkgs { inherit system; };
in rec {
devShell = pkgs.mkShell {
buildInputs = with pkgs; [
poetry
(python3.withPackages (ps:
with ps; [
black
isort
pylint
bandit
]))
bashInteractive
];
# shellHook = ''
# PYTHONPATH=$PYTHONPATH:$(pwd)
# '';
};
});
}