56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{
|
|
lib,
|
|
arrow,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pint,
|
|
pydantic,
|
|
pythonOlder,
|
|
pytz,
|
|
requests,
|
|
responses,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "stravalib";
|
|
version = "2.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stravalib";
|
|
repo = "stravalib";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-VEVy9BAAoLsBCwMNFpsCjhacFbsgNswYoJ5tTcOQccw=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|