1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools_scm
5, pycryptodome
6, requests
7}:
8
9buildPythonPackage rec {
10 pname = "httpsig";
11 version = "1.2.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "19ng7y7blp13z081z5a6dxng1p8xlih7g6frmsg3q5ri8lvpybc7";
16 };
17
18 buildInputs = [ setuptools_scm ];
19 propagatedBuildInputs = [ pycryptodome requests ];
20
21 # Jailbreak pycryptodome
22 preBuild = ''
23 substituteInPlace setup.py --replace "==3.4.7" ""
24 '';
25
26 meta = with lib; {
27 description = "Sign HTTP requests with secure signatures";
28 license = licenses.mit;
29 maintainers = with maintainers; [ srhb ];
30 homepage = https://github.com/ahknight/httpsig;
31 };
32}