Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

grafana.nix

Blame
  • Forked from PrivateStorage / PrivateStorageio
    Source project has a limited visibility.
    shell.nix 885 B
    # Note: Passing arguments through here to customize the environment does not
    # work on Nix 2.3.  It works with Nix 2.5.  I'm not sure about 2.4.
    { ... }@args:
    let
      tests = import ./tests.nix args;
      inherit (tests) privatestorage lint-python;
      inherit (privatestorage) pkgs mach-nix tahoe-lafs zkapauthorizer;
    
      python-env = mach-nix.mkPython {
        inherit (zkapauthorizer.meta.mach-nix) python providers;
        overridesPre = [
          (
            self: super: {
              inherit tahoe-lafs;
            }
          )
        ];
        requirements =
          ''
          ${builtins.readFile ./requirements/test.in}
          ${zkapauthorizer.requirements}
          '';
      };
    in
    pkgs.mkShell {
      # Avoid leaving .pyc all over the source tree when manually triggering tests
      # runs.
      PYTHONDONTWRITEBYTECODE = "1";
    
      buildInputs = [
        # Supply all of the runtime and testing dependencies.
        python-env
      ];
    }