1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 poetry-core, 6 requests, 7 requests-toolbelt, 8}: 9 10buildPythonPackage rec { 11 pname = "aws-request-signer"; 12 version = "1.2.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit version; 17 pname = "aws_request_signer"; 18 hash = "sha256-DVorDO0wz94Fhduax7VsQZ5B5SnBfsHQoLoW4m6Ce+U="; 19 }; 20 21 postPatch = '' 22 substituteInPlace pyproject.toml \ 23 --replace-fail "poetry>=0.12" poetry-core \ 24 --replace-fail poetry.masonry.api poetry.core.masonry.api 25 ''; 26 27 build-system = [ poetry-core ]; 28 29 dependencies = [ 30 requests 31 requests-toolbelt 32 ]; 33 34 doCheck = false; 35 36 meta = { 37 changelog = "https://github.com/iksteen/aws-request-signer/releases/tag/${version}"; 38 description = "Python library to sign AWS requests using AWS Signature V4"; 39 homepage = "https://github.com/iksteen/aws-request-signer"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ pyrox0 ]; 42 }; 43}