37 lines
910 B
Nix
37 lines
910 B
Nix
{
|
|
inputs = {
|
|
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 {
|
|
packages = {
|
|
pyrad3 = with pkgs; with pkgs.python3Packages; callPackage ./default.nix { };
|
|
};
|
|
devShell = pkgs.mkShell
|
|
{
|
|
buildInputs = with pkgs;
|
|
[
|
|
(python3.withPackages (ps: with ps; [
|
|
bandit
|
|
black
|
|
flake8
|
|
flit
|
|
isort
|
|
pylint
|
|
pytest
|
|
]))
|
|
bashInteractive
|
|
];
|
|
|
|
shellHook = ''
|
|
export PYTHONPATH=''${PYTHONPATH:+''${PYTHONPATH}:}''$(pwd)/src/
|
|
'';
|
|
};
|
|
});
|
|
}
|