Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 77 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ lib, buildPythonPackage, fetchFromGitHub, requests, requests-toolbelt, requests-oauthlib, six, pytestCheckHook, responses, pythonOlder, setuptools,}:
buildPythonPackage rec { pname = "flickrapi"; version = "2.4"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "sybrenstuvel"; repo = "flickrapi"; rev = "version-${version}"; hash = "sha256-vRZrlXKI0UDdmDevh3XUngH4X8G3VlOCSP0z/rxhIgw="; };
postPatch = '' substituteInPlace tests/test_tokencache.py \ --replace-fail "assertEquals" "assertEqual" \ --replace-fail "assertNotEquals" "assertNotEqual" '';
build-system = [ setuptools ];
dependencies = [ requests requests-toolbelt requests-oauthlib six ];
nativeCheckInputs = [ pytestCheckHook responses ];
preCheck = '' export HOME=$(mktemp -d); '';
disabledTests = [ # Tests require network access "test_default_format" "test_etree_default_format" "test_etree_format_error" "test_etree_format_happy" "test_explicit_format" "test_json_callback_format" "test_json_format" "test_parsed_json_format" "test_walk" "test_xmlnode_format" "test_xmlnode_format_error" ];
pythonImportsCheck = [ "flickrapi" ];
meta = with lib; { description = "Python interface to the Flickr API"; homepage = "https://stuvel.eu/flickrapi"; changelog = "https://github.com/sybrenstuvel/flickrapi/blob/version-${version}/CHANGELOG.md"; license = licenses.psfl; maintainers = with maintainers; [ obadz ]; };}