2018-09-02 14:09:57 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
2021-07-20 22:21:18 +01:00
|
|
|
, requests-toolbelt
|
2018-09-02 14:09:57 +01:00
|
|
|
, requests_oauthlib
|
|
|
|
, pytest
|
2021-07-20 22:07:53 +01:00
|
|
|
, pytest-runner
|
2021-07-20 21:42:24 +01:00
|
|
|
, pytest-cov
|
2018-09-02 14:09:57 +01:00
|
|
|
, responses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flickrapi";
|
|
|
|
version = "2.4.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "03g2z21k6nhxgwysjrgnxj9m1yg25mnnkr10gpyfhfkd9w77pcpz";
|
|
|
|
};
|
|
|
|
|
2021-07-20 22:21:18 +01:00
|
|
|
propagatedBuildInputs = [ requests requests-toolbelt requests_oauthlib ];
|
2018-09-02 14:09:57 +01:00
|
|
|
|
2021-07-20 22:07:53 +01:00
|
|
|
checkInputs = [ pytest pytest-runner pytest-cov responses ];
|
2018-09-02 14:09:57 +01:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://stuvel.eu/flickrapi";
|
2018-09-02 14:09:57 +01:00
|
|
|
license = lib.licenses.psfl;
|
|
|
|
maintainers = with lib.maintainers; [ obadz ];
|
|
|
|
};
|
|
|
|
}
|