2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, rustPlatform
|
|
|
|
, rustc
|
|
|
|
, cargo
|
|
|
|
, setuptools-rust
|
|
|
|
# build inputs
|
|
|
|
, cffi
|
|
|
|
, glean-parser
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "glean-sdk";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "44.0.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-gzLsBwq3wrFde5cEb5+oFLW4KrwoiZpr22JbJhNr1yk=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-lWFv8eiA3QHp5bhcg4qon/dvKUbFbtH1Q2oXGkk0Me0=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
rustc
|
|
|
|
cargo
|
|
|
|
setuptools-rust
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cffi
|
|
|
|
glean-parser
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "glean" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Modern cross-platform telemetry client libraries and are a part of the Glean project";
|
|
|
|
homepage = "https://mozilla.github.io/glean/book/index.html";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = [ maintainers.kvark ];
|
|
|
|
};
|
|
|
|
}
|