summary refs log tree commit diff
path: root/pkgs/development/python-modules/flickrapi/default.nix
blob: cfcc4d362997c522a82cadfe3c099a553a87442f (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
{ lib
, buildPythonPackage
, fetchPypi
, requests
, requests_toolbelt
, requests_oauthlib
, pytest
, pytestrunner
, pytestcov
, responses
}:

buildPythonPackage rec {
  pname   = "flickrapi";
  version = "2.4.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "03g2z21k6nhxgwysjrgnxj9m1yg25mnnkr10gpyfhfkd9w77pcpz";
  };

  propagatedBuildInputs = [ requests requests_toolbelt requests_oauthlib ];

  checkInputs = [ pytest pytestrunner pytestcov responses ];
  doCheck = false; # Otherwise:
  # ========================= no tests ran in 0.01 seconds =========================
  # builder for '/nix/store/c8a58v6aa18zci08q2l53s12ywn8jqhq-python3.6-flickrapi-2.4.0.drv' failed with exit code 5

  meta = {
    description = "A Python interface to the Flickr API";
    homepage    = "https://stuvel.eu/flickrapi";
    license     = lib.licenses.psfl;
    maintainers = with lib.maintainers; [ obadz ];
  };
}