blob: 5dea3e4736652efc8d6a97681e5fce0db0975dec (
plain) (
blame)
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
|
{
stdenv,
lib,
buildPythonPackage,
fetchFromGitHub,
glean-parser,
pytest-localserver,
pytestCheckHook,
rustPlatform,
semver,
setuptools,
}:
buildPythonPackage rec {
pname = "glean-sdk";
version = "60.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "mozilla";
repo = "glean";
rev = "v${version}";
hash = "sha256-C3wQdxPNBPQN6eUK6Vq0bA6Wpqb28e9BTBf7c/hTQxU=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-XqOCHnvM64kZNifU5Wt/bFAvyRVy28ozWSwlvm/sMk8=";
};
build-system = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
setuptools
];
dependencies = [
glean-parser
semver
];
nativeCheckInputs = [
pytest-localserver
pytestCheckHook
];
pytestFlagsArray = [ "glean-core/python/tests" ];
disabledTests = [
# RuntimeError: No ping received.
"test_client_activity_api"
"test_flipping_upload_enabled_respects_order_of_events"
# A warning causes this test to fail
"test_get_language_tag_reports_the_tag_for_the_default_locale"
];
pythonImportsCheck = [ "glean" ];
meta = {
broken = stdenv.isDarwin;
description = "Telemetry client libraries and are a part of the Glean project";
homepage = "https://mozilla.github.io/glean/book/index.html";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ melling ];
};
}
|