forked from mirrors/nixpkgs
Merge pull request #74190 from d-goldin/m2crypto_typing_dep
pythonPackages.m2crypto: conditional `typing` dep
This commit is contained in:
commit
5cae87534b
|
@ -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