1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 hatchling, 9 hatch-vcs, 10 requests, 11}: 12 13buildPythonPackage rec { 14 pname = "http-message-signatures"; 15 version = "1.0.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "pyauth"; 22 repo = "http-message-signatures"; 23 tag = "v${version}"; 24 hash = "sha256-vPZeAS3hR7Bmj2FtME+V9WU3TViBndrBb9GLkdMVh2Q="; 25 }; 26 27 build-system = [ 28 hatchling 29 hatch-vcs 30 ]; 31 32 dependencies = [ 33 cryptography 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 requests 39 ]; 40 41 enabledTestPaths = [ "test/test.py" ]; 42 43 pythonImportsCheck = [ "http_message_signatures" ]; 44 45 meta = { 46 description = "Requests authentication module for HTTP Signature"; 47 homepage = "https://github.com/pyauth/http-message-signatures"; 48 license = lib.licenses.asl20; 49 maintainers = with lib.maintainers; [ fab ]; 50 }; 51}