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:
parent
e0734891f8
commit
22ffab00cc
1 changed files with 3 additions and 1 deletions
|
@ -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}'"
|
||||
|
|
Loading…
Reference in a new issue