python312Packages.flickrapi: refactor

This commit is contained in:
Fabian Affolter
2024-09-25 11:39:27 +02:00
parent 7205e5d9c1
commit 6b2f4f3d0e
@@ -9,23 +9,26 @@
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 = [
build-system = [ setuptools ];
dependencies = [
requests
requests-toolbelt
requests-oauthlib
@@ -61,6 +64,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 ];
};