depot/third_party/nixpkgs/pkgs/development/python-modules/garminconnect/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

42 lines
893 B
Nix

{ lib
, buildPythonPackage
, cloudscraper
, fetchFromGitHub
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "garminconnect";
version = "0.1.49";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cyberjunky";
repo = "python-garminconnect";
rev = "refs/tags/${version}";
hash = "sha256-K9Q4Ce6agDgjP5rzXVK/koD51IyYKLLnd7JyrOxBs20=";
};
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";
changelog = "https://github.com/cyberjunky/python-garminconnect/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}