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