3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #74190 from d-goldin/m2crypto_typing_dep

pythonPackages.m2crypto: conditional `typing` dep
This commit is contained in:
Florian Klink 2019-11-25 22:01:22 +01:00 committed by GitHub
commit 5cae87534b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}'"