about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/stravalib/default.nix
blob: 1615f57d5e59a8b33af02ca3fc899b792d6e7796 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, buildPythonPackage
, fetchPypi
, nose
, arrow
, requests
, units
, pytz
, six
}:

buildPythonPackage rec {
  pname = "stravalib";
  version = "0.10.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "76db248b24cbd6c51cf93b475d8a8df04ec4b6c6287dca244e47f37a433276d7";
  };

  checkInputs = [
    nose
  ];

  propagatedBuildInputs = [
    arrow
    requests
    units
    pytz
    six
  ];

  # tests require network access
  # testing strava api
  doCheck = false;

  meta = with lib; {
    description = "Python library for interacting with Strava v3 REST API";
    homepage = "https://github.com/hozn/stravalib";
    license = licenses.asl20;
    maintainers = [ maintainers.costrouc ];
  };
}