python3Packages.httpsig: fix build

This commit is contained in:
Fabian Affolter 2021-04-03 17:27:43 +02:00
parent de5d734e0c
commit 5a28fc174a

View file

@ -1,9 +1,10 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, setuptools-scm
, pycryptodome
, requests
, six
}:
buildPythonPackage rec {
@ -15,13 +16,17 @@ buildPythonPackage rec {
sha256 = "1rkc3zwsq53rjsmc47335m4viljiwdbmw3y2zry4z70j8q1dbmki";
};
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ pycryptodome requests ];
buildInputs = [
setuptools-scm
];
# Jailbreak pycryptodome
preBuild = ''
substituteInPlace setup.py --replace "==3.4.7" ""
'';
propagatedBuildInputs = [
pycryptodome
requests
six
];
pythonImportsCheck = [ "httpsig" ];
meta = with lib; {
description = "Sign HTTP requests with secure signatures";