Files
nixpkgs/pkgs/development/python-modules/http-message-signatures/default.nix
T
2026-01-09 09:12:53 +01:00

48 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
hatch-vcs,
hatchling,
pytestCheckHook,
requests,
}:
buildPythonPackage (finalAttrs: {
pname = "http-message-signatures";
version = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pyauth";
repo = "http-message-signatures";
tag = "v${finalAttrs.version}";
hash = "sha256-uHsH/kYph50cpLcy4lnu466odexUVvQAYk0ydgtcsM8=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [ cryptography ];
nativeCheckInputs = [
pytestCheckHook
requests
];
enabledTestPaths = [ "test/test.py" ];
pythonImportsCheck = [ "http_message_signatures" ];
meta = {
description = "Requests authentication module for HTTP Signature";
homepage = "https://github.com/pyauth/http-message-signatures";
changelog = "https://github.com/pyauth/http-message-signatures/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})