8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
32 lines
689 B
Nix
32 lines
689 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools_scm
|
|
, pycryptodome
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "httpsig";
|
|
version = "1.3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1rkc3zwsq53rjsmc47335m4viljiwdbmw3y2zry4z70j8q1dbmki";
|
|
};
|
|
|
|
buildInputs = [ setuptools_scm ];
|
|
propagatedBuildInputs = [ pycryptodome requests ];
|
|
|
|
# Jailbreak pycryptodome
|
|
preBuild = ''
|
|
substituteInPlace setup.py --replace "==3.4.7" ""
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Sign HTTP requests with secure signatures";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ srhb ];
|
|
homepage = "https://github.com/ahknight/httpsig";
|
|
};
|
|
}
|