push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
{
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"
"test_upload"
];
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 ];
};
}