1{ lib
2, buildPythonPackage
3, fetchPypi
4, nose
5, setuptools
6, setuptools-scm
7, wheel
8, arrow
9, requests
10, units
11, pint
12, pydantic
13, pytz
14, six
15}:
16
17buildPythonPackage rec {
18 pname = "stravalib";
19 version = "1.5";
20 format = "pyproject";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-OEdMRg3KjUrXt/CgJgsUqa/sVFAE0JONNZg5MBKtxmY=";
25 };
26
27 nativeBuildInputs = [
28 setuptools
29 setuptools-scm
30 wheel
31 ];
32
33 nativeCheckInputs = [
34 nose
35 ];
36
37 propagatedBuildInputs = [
38 arrow
39 requests
40 units
41 pint
42 pydantic
43 pytz
44 six
45 ];
46
47 # tests require network access
48 # testing strava api
49 doCheck = false;
50
51 meta = with lib; {
52 description = "Python library for interacting with Strava v3 REST API";
53 homepage = "https://github.com/stravalib/stravalib";
54 license = licenses.asl20;
55 maintainers = [ ];
56 };
57}