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

                    
              
                 
             



                        
                          
                     


                               


                         
                                  
                  
                                                                 


                           
                


            
                       

                  
                        
                   
    

                    

                                                                    



                                            
{ lib
, buildPythonPackage
, cloudscraper
, fetchFromGitHub
, pythonOlder
, requests
}:

buildPythonPackage rec {
  pname = "garminconnect";
  version = "0.1.44";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "cyberjunky";
    repo = "python-garminconnect";
    rev = version;
    hash = "sha256-CUjMbh3eGPwoHW+oOjaVyr0g/txWmzGuP1usq2WCwZg=";
  };

  propagatedBuildInputs = [
    cloudscraper
    requests
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "garminconnect"
  ];

  meta = with lib; {
    description = "Garmin Connect Python API wrapper";
    homepage = "https://github.com/cyberjunky/python-garminconnect";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}