2018-08-31 02:09:52 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools_scm
|
|
|
|
, pycryptodome
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "httpsig";
|
2019-01-28 10:24:13 +01:00
|
|
|
version = "1.3.0";
|
2018-08-31 02:09:52 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-28 10:24:13 +01:00
|
|
|
sha256 = "1rkc3zwsq53rjsmc47335m4viljiwdbmw3y2zry4z70j8q1dbmki";
|
2018-08-31 02:09:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|