1{ lib, buildPythonPackage, fetchPypi, flit, click, tomli }:
2
3buildPythonPackage rec {
4 pname = "turnt";
5 version = "1.11.0";
6 format = "pyproject";
7
8 src = fetchPypi {
9 inherit pname version;
10 hash = "sha256-XN+qzRgZMSdeBmW0OM36mQ79sRCuP8E++SqH8FOoEq0=";
11 };
12
13 nativeBuildInputs = [
14 flit
15 ];
16
17 propagatedBuildInputs = [
18 click
19 tomli
20 ];
21
22 doCheck = true;
23
24 checkPhase = ''
25 runHook preCheck
26 $out/bin/turnt test/*/*.t
27 runHook postCheck
28 '';
29
30 pythonImportsCheck = [ "turnt" ];
31
32 meta = with lib; {
33 description = "Snapshot testing tool";
34 homepage = "https://github.com/cucapra/turnt";
35 license = licenses.mit;
36 maintainers = with maintainers; [ leungbk ];
37 };
38}