blob: a213f3a3f547a92ed93bec08e920694a483f0922 (
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
43
44
45
46
47
48
49
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest,
pytest-xdist,
invoke,
}:
buildPythonPackage rec {
pname = "syrupy";
version = "5.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "syrupy-project";
repo = "syrupy";
tag = "v${version}";
hash = "sha256-TRwU9+2RvZB2gbVm82DzLge8QoDflxjavcRdYZUgVfs=";
};
build-system = [ poetry-core ];
buildInputs = [ pytest ];
nativeCheckInputs = [
invoke
pytest
pytest-xdist
];
checkPhase = ''
runHook preCheck
# https://github.com/tophat/syrupy/blob/main/CONTRIBUTING.md#local-development
invoke test
runHook postCheck
'';
pythonImportsCheck = [ "syrupy" ];
meta = {
changelog = "https://github.com/syrupy-project/syrupy/blob/${src.tag}/CHANGELOG.md";
description = "Pytest Snapshot Test Utility";
homepage = "https://github.com/syrupy-project/syrupy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|