python312Packages.flickrapi: patch tests (#344402)
This commit is contained in:
@@ -9,23 +9,32 @@
|
||||
pytestCheckHook,
|
||||
responses,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flickrapi";
|
||||
version = "2.4";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sybrenstuvel";
|
||||
repo = pname;
|
||||
repo = "flickrapi";
|
||||
rev = "version-${version}";
|
||||
hash = "sha256-vRZrlXKI0UDdmDevh3XUngH4X8G3VlOCSP0z/rxhIgw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
postPatch = ''
|
||||
substituteInPlace tests/test_tokencache.py \
|
||||
--replace-fail "assertEquals" "assertEqual" \
|
||||
--replace-fail "assertNotEquals" "assertNotEqual"
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
requests
|
||||
requests-toolbelt
|
||||
requests-oauthlib
|
||||
@@ -61,6 +70,7 @@ buildPythonPackage rec {
|
||||
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 ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user