2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage,
|
2024-05-15 15:35:15 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage rec {
|
2024-05-15 15:35:15 +00:00
|
|
|
pname = "libgravatar";
|
|
|
|
version = "1.0.4";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pabluk";
|
|
|
|
repo = "libgravatar";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-rJv/jfdT+JldxR0kKtXQLOI5wXQYSQRWJnqwExwWjTA=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "libgravatar" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library that provides a Python 3 interface for the Gravatar API";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/pabluk/libgravatar";
|
|
|
|
changelog = "https://github.com/pabluk/libgravatar/releases/tag/${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ gador ];
|
|
|
|
};
|
|
|
|
}
|