depot/third_party/nixpkgs/pkgs/development/python-modules/libgravatar/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
860 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "libgravatar";
version = "1.0.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pabluk";
repo = "libgravatar";
rev = "refs/tags/${version}";
hash = "sha256-rJv/jfdT+JldxR0kKtXQLOI5wXQYSQRWJnqwExwWjTA=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "libgravatar" ];
meta = with lib; {
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 ];
};
}