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