python312Packages.libgravatar: refactor

This commit is contained in:
Fabian Affolter 2024-05-15 14:19:58 +02:00 committed by GitHub
parent 9e6090f955
commit d1800d1437
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,11 +4,15 @@
fetchFromGitHub,
setuptools,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "libgravatar";
version = "1.0.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pabluk";
@ -17,15 +21,16 @@ buildPythonPackage rec {
hash = "sha256-rJv/jfdT+JldxR0kKtXQLOI5wXQYSQRWJnqwExwWjTA=";
};
nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "libgravatar" ];
meta = with lib; {
homepage = "https://github.com/pabluk/libgravatar";
description = "A library that provides a Python 3 interface for the Gravatar API";
homepage = "https://github.com/pabluk/libgravatar";
changelog = "https://github.com/pabluk/libgravatar/releases/tag/${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ gador ];
};