depot/third_party/nixpkgs/pkgs/development/python-modules/glean-sdk/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

47 lines
962 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, rustPlatform
, rustc
, cargo
, setuptools-rust
# build inputs
, cffi
, glean-parser
}:
buildPythonPackage rec {
pname = "glean-sdk";
version = "44.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-gzLsBwq3wrFde5cEb5+oFLW4KrwoiZpr22JbJhNr1yk=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
sha256 = "sha256-lWFv8eiA3QHp5bhcg4qon/dvKUbFbtH1Q2oXGkk0Me0=";
};
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 ];
};
}