1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "libgravatar";
12 version = "1.0.4";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "pabluk";
19 repo = "libgravatar";
20 tag = version;
21 hash = "sha256-rJv/jfdT+JldxR0kKtXQLOI5wXQYSQRWJnqwExwWjTA=";
22 };
23
24 build-system = [ setuptools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "libgravatar" ];
29
30 meta = with lib; {
31 description = "Library that provides a Python 3 interface for the Gravatar API";
32 homepage = "https://github.com/pabluk/libgravatar";
33 changelog = "https://github.com/pabluk/libgravatar/releases/tag/${version}";
34 license = licenses.gpl3Plus;
35 maintainers = with maintainers; [ gador ];
36 };
37}