Skip to content
Snippets Groups Projects
Select Git revision
  • 47c4d505c77c5b6a1e141b0d787c4f86c1a1bfcb
  • develop default protected
  • production protected
  • nixpkgs-upgrade-2025-06-16
  • nixpkgs-upgrade-2024-12-23
  • 190-our-regular-updates-fill-up-the-servers-boot-partitions
  • nixpkgs-upgrade-2024-10-14
  • hro-cloud protected
  • 162.flexible-grafana-module
  • nixpkgs-upgrade-2024-05-13
  • nixpkgs-upgrade-2024-04-22
  • nixpkgs-upgrade-2024-03-25
  • nixpkgs-upgrade-2024-03-18
  • nixpkgs-upgrade-2024-03-11
  • nixpkgs-upgrade-2024-03-04
  • 163.jp-to-ben-for-prod
  • nixpkgs-upgrade-2024-02-26
  • 164.grafana-alert-rules
  • 157.authorize-new-hro-key
  • nixpkgs-upgrade-2024-02-19
  • nixpkgs-upgrade-2024-02-12
21 results

run-client.py

Blame
  • 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
      ];
    }