depot/third_party/nixpkgs/pkgs/development/python-modules/stravalib/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

56 lines
1 KiB
Nix

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