typed-format-version 0.2.1

Load format.version.{major,minor} from a structured file.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ pkgs ? import (fetchTarball
  "https://github.com/ppentchev/nixpkgs/archive/roam-tox-tomli.tar.gz") { }
, py-ver ? 310 }:
let
  python-name = "python${toString py-ver}";
  python = builtins.getAttr python-name pkgs;
  python-with-tox = python.withPackages (p: with p; [ tox ]);
in pkgs.mkShell {
  buildInputs = [ python-with-tox ];
  shellHook = ''
    set -e
    TOX_SKIP_ENV=unit_tests tox -p all
    tox -p all -e unit-tests
    exit
  '';
}