python.pkgs.trustme: fix python2 build

This commit is contained in:
Orivej Desh 2018-06-04 04:06:09 +00:00
parent 6db9f4685a
commit 1c7acb09fa

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, cryptography, pytest, pyopenssl, service-identity }: { lib, buildPythonPackage, fetchPypi, isPy3k, cryptography, futures, pytest, pyopenssl, service-identity }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "trustme"; pname = "trustme";
@ -15,6 +15,8 @@ buildPythonPackage rec {
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
cryptography cryptography
] ++ lib.optionals (!isPy3k) [
futures
]; ];
meta = { meta = {