nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 arrow,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pint,
7 pydantic,
8 pytz,
9 requests,
10 responses,
11 setuptools,
12 setuptools-scm,
13}:
14
15buildPythonPackage rec {
16 pname = "stravalib";
17 version = "2.4";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "stravalib";
22 repo = "stravalib";
23 tag = "v${version}";
24 hash = "sha256-RMvahoUOy4RnSu0O7dBpYylaQ8nPfMiivx8k1XBeEGA=";
25 };
26
27 build-system = [
28 setuptools
29 setuptools-scm
30 ];
31
32 dependencies = [
33 arrow
34 pint
35 pydantic
36 pytz
37 requests
38 responses
39 ];
40
41 # Tests require network access, testing strava API
42 doCheck = false;
43
44 pythonImportsCheck = [ "stravalib" ];
45
46 meta = {
47 description = "Python library for interacting with Strava v3 REST API";
48 homepage = "https://github.com/stravalib/stravalib";
49 changelog = "https://github.com/stravalib/stravalib/releases/tag/${src.tag}";
50 license = lib.licenses.asl20;
51 maintainers = with lib.maintainers; [ sikmir ];
52 };
53}