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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
{
lib,
buildPythonPackage,
cacert,
entrypoints,
fetchFromGitHub,
freezegun,
funcy,
gitSetupHook,
pydantic,
pydantic-settings,
pytest-cov-stub,
pytest-mock,
pytest-test-utils,
pytestCheckHook,
rich,
ruamel-yaml,
scmrepo,
semver,
setuptools-scm,
setuptools,
tabulate,
typer,
writableTmpDirAsHomeHook,
}:
buildPythonPackage (finalAttrs: {
pname = "gto";
version = "1.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "iterative";
repo = "gto";
tag = finalAttrs.version;
hash = "sha256-LXYpOnk9W/ellG70qZLihmvk4kvVcwZfE5buPNU2qzQ=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
entrypoints
funcy
pydantic
pydantic-settings
rich
ruamel-yaml
scmrepo
semver
tabulate
typer
];
nativeCheckInputs = [
freezegun
gitSetupHook
pytest-cov-stub
pytest-mock
pytest-test-utils
pytestCheckHook
writableTmpDirAsHomeHook
];
preCheck = ''
# _pygit2.GitError: OpenSSL error: failed to load certificates: error:00000000:lib(0)::reason(0)
export SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt
'';
disabledTests = [
# Tests want to do it with a remote repo
"remote_repo"
"remote_git_repo"
"test_action_doesnt_push_even_if_repo_has_remotes_set"
"test_api"
# ValueError: stderr not separately captured
"test_register"
"test_assign"
"test_stderr_gto_exception"
"test_stderr_exception"
];
pythonImportsCheck = [ "gto" ];
meta = {
description = "Module for Git Tag Operations";
homepage = "https://github.com/iterative/gto";
changelog = "https://github.com/iterative/gto/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "gto";
};
})
|