pythonPackages.m2crypto: conditional typing dep

Since python 3.5 typing is included in the stdlib and as such
this library should not be included and propagated for >=3.5.
This commit is contained in:
Dima 2019-11-25 20:30:14 +01:00
parent e0734891f8
commit 22ffab00cc

View file

@ -1,7 +1,9 @@
{ stdenv
, lib
, fetchpatch
, buildPythonPackage
, fetchPypi
, pythonOlder
, swig2
, openssl
, typing
@ -28,7 +30,7 @@ buildPythonPackage rec {
nativeBuildInputs = [ swig2 ];
buildInputs = [ swig2 openssl ];
propagatedBuildInputs = [ typing ];
propagatedBuildInputs = lib.optional (pythonOlder "3.5") typing;
preConfigure = ''
substituteInPlace setup.py --replace "self.openssl = '/usr'" "self.openssl = '${openssl.dev}'"