{ lib, arrow, buildPythonPackage, fetchFromGitHub, pint, pydantic, pythonOlder, pytz, requests, responses, setuptools, setuptools-scm, }: buildPythonPackage rec { pname = "stravalib"; version = "2.0"; pyproject = true; disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "stravalib"; repo = "stravalib"; rev = "refs/tags/v${version}"; hash = "sha256-uF29fK+ZSSO688zKYYiSEygBUJZ6NBcvdgGgz3I1I6Q="; }; build-system = [ setuptools setuptools-scm ]; dependencies = [ arrow pint pydantic pytz requests responses ]; # Tests require network access, testing strava API doCheck = false; pythonImportsCheck = [ "stravalib" ]; meta = with lib; { description = "Python library for interacting with Strava v3 REST API"; homepage = "https://github.com/stravalib/stravalib"; changelog = "https://github.com/stravalib/stravalib/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ sikmir ]; }; }