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