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,7 +1,9 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
|
, lib
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
, swig2
|
, swig2
|
||||||
, openssl
|
, openssl
|
||||||
, typing
|
, typing
|
||||||
@ -28,7 +30,7 @@ buildPythonPackage rec {
|
|||||||
nativeBuildInputs = [ swig2 ];
|
nativeBuildInputs = [ swig2 ];
|
||||||
buildInputs = [ swig2 openssl ];
|
buildInputs = [ swig2 openssl ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ typing ];
|
propagatedBuildInputs = lib.optional (pythonOlder "3.5") typing;
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
substituteInPlace setup.py --replace "self.openssl = '/usr'" "self.openssl = '${openssl.dev}'"
|
substituteInPlace setup.py --replace "self.openssl = '/usr'" "self.openssl = '${openssl.dev}'"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user