summaryrefslogtreecommitdiff
path: root/nix/python-vetox.nix
blob: 9b1b6483e033f6bd8585950c27b08c1a45dbcfda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net>
# SPDX-License-Identifier: BSD-2-Clause

{ pkgs ? import <nixpkgs> { }
, py-ver ? 311
}:
let
  python-name = "python${toString py-ver}";
  python = builtins.getAttr python-name pkgs;
in
pkgs.mkShell {
  buildInputs = [
    pkgs.gitMinimal
    python
  ];
  shellHook = ''
    set -e
    python3 tests/vetox.py run-parallel
    exit
  '';
}