b1f70ac21d
Add self as maintainer
70 lines
1.2 KiB
Nix
70 lines
1.2 KiB
Nix
{ stdenv
|
|
, lib
|
|
, buildPythonPackage
|
|
, cargo
|
|
, cffi
|
|
, fetchPypi
|
|
, glean-parser
|
|
, iso8601
|
|
, pytest-localserver
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, rustc
|
|
, rustPlatform
|
|
, semver
|
|
, setuptools-rust
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "glean-sdk";
|
|
version = "52.2.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-iW432YtZtRGUWia33Lsnu+aQuedhBJdh8dZ30FPg6Vk=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
hash = "sha256-/7qKIQglNKGveKFtPeqd35Mq2hH/20BGTgDBgip4PnI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cargo
|
|
rustc
|
|
rustPlatform.cargoSetupHook
|
|
setuptools-rust
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cffi
|
|
glean-parser
|
|
iso8601
|
|
semver
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-localserver
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# RuntimeError: No ping received.
|
|
"test_client_activity_api"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"glean"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.mpl20;
|
|
maintainers = with maintainers; [ melling ];
|
|
};
|
|
}
|