summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2017-08-30 22:05:30 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2017-09-02 13:55:59 +0200
commit8521ea97a76c1ce3c45c0e4040a0b14a4ee6d088 (patch)
tree86bef3bece36fa4d08b3a929492631daa4361810 /pkgs/development
parentf1796b8be0472e6e790a07a18e5b4c02907dffe4 (diff)
downloadnixpkgs-8521ea97a76c1ce3c45c0e4040a0b14a4ee6d088.tar
nixpkgs-8521ea97a76c1ce3c45c0e4040a0b14a4ee6d088.tar.gz
nixpkgs-8521ea97a76c1ce3c45c0e4040a0b14a4ee6d088.tar.bz2
nixpkgs-8521ea97a76c1ce3c45c0e4040a0b14a4ee6d088.tar.lz
nixpkgs-8521ea97a76c1ce3c45c0e4040a0b14a4ee6d088.tar.xz
nixpkgs-8521ea97a76c1ce3c45c0e4040a0b14a4ee6d088.tar.zst
nixpkgs-8521ea97a76c1ce3c45c0e4040a0b14a4ee6d088.zip
python.pkgs.twisted: add the tls extras
With setuptools it is possible to define optional sets of packages.
Sometimes packages may require a dependency with such extras. In that
case we could now add e.g. twisted.extras.tls to the
propagatedBuildInputs.
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/twisted/default.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/twisted/default.nix b/pkgs/development/python-modules/twisted/default.nix
index 66a6022802f..8acbfc91a41 100644
--- a/pkgs/development/python-modules/twisted/default.nix
+++ b/pkgs/development/python-modules/twisted/default.nix
@@ -1,5 +1,15 @@
-{ stdenv, buildPythonPackage, fetchurl, python,
-  zope_interface, incremental, automat, constantly, hyperlink
+{ stdenv
+, buildPythonPackage
+, fetchurl
+, python
+, zope_interface
+, incremental
+, automat
+, constantly
+, hyperlink
+, pyopenssl
+, service-identity
+, idna
 }:
 buildPythonPackage rec {
   pname = "Twisted";
@@ -13,6 +23,8 @@ buildPythonPackage rec {
 
   propagatedBuildInputs = [ zope_interface incremental automat constantly hyperlink ];
 
+  passthru.extras.tls = [ pyopenssl service-identity idna ];
+
   # Patch t.p._inotify to point to libc. Without this,
   # twisted.python.runtime.platform.supportsINotify() == False
   patchPhase = stdenv.lib.optionalString stdenv.isLinux ''