depot/third_party/nixpkgs/pkgs/development/python-modules/libgravatar/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

30 lines
744 B
Nix

{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "libgravatar";
version = "1.0.4";
src = fetchFromGitHub {
owner = "pabluk";
repo = "libgravatar";
rev = "refs/tags/${version}";
hash = "sha256-rJv/jfdT+JldxR0kKtXQLOI5wXQYSQRWJnqwExwWjTA=";
};
nativeBuildInputs = with python3Packages; [ setuptools ];
nativeCheckInputs = with python3Packages; [ 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";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ gador ];
};
}