summary refs log blame commit diff
path: root/pkgs/development/python-modules/glean-sdk/default.nix
blob: f2c2f92c9f0d2748a022084937ba62c1bd714e9a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
     

                    
              

       
                 


              

  
                        
                      
                     
 
                   
                          
                                                                   




                                              
                                                                   


                       

         


                               
                           












                                                                                                         
{ 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 ];
  };
}