|
|
@ -1,5 +1,6 @@ |
|
|
|
{ lib, stdenv |
|
|
|
{ lib, stdenv |
|
|
|
, buildPythonPackage |
|
|
|
, buildPythonPackage |
|
|
|
|
|
|
|
, pythonOlder |
|
|
|
, fetchPypi |
|
|
|
, fetchPypi |
|
|
|
, python |
|
|
|
, python |
|
|
|
, zope_interface |
|
|
|
, zope_interface |
|
|
@ -14,11 +15,24 @@ |
|
|
|
, setuptools |
|
|
|
, setuptools |
|
|
|
, idna |
|
|
|
, idna |
|
|
|
, typing-extensions |
|
|
|
, typing-extensions |
|
|
|
|
|
|
|
, pyasn1 |
|
|
|
|
|
|
|
, cryptography |
|
|
|
|
|
|
|
, appdirs |
|
|
|
|
|
|
|
, bcrypt |
|
|
|
|
|
|
|
, pynacl |
|
|
|
|
|
|
|
, pyserial |
|
|
|
|
|
|
|
, h2 |
|
|
|
|
|
|
|
, priority |
|
|
|
|
|
|
|
, contextvars |
|
|
|
}: |
|
|
|
}: |
|
|
|
buildPythonPackage rec { |
|
|
|
buildPythonPackage rec { |
|
|
|
pname = "Twisted"; |
|
|
|
pname = "Twisted"; |
|
|
|
version = "22.4.0"; |
|
|
|
version = "22.4.0"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
format = "setuptools"; |
|
|
|
|
|
|
|
|
|
|
|
src = fetchPypi { |
|
|
|
src = fetchPypi { |
|
|
|
inherit pname version; |
|
|
|
inherit pname version; |
|
|
|
extension = "tar.gz"; |
|
|
|
extension = "tar.gz"; |
|
|
@ -27,7 +41,14 @@ buildPythonPackage rec { |
|
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ zope_interface incremental automat constantly hyperlink pyhamcrest attrs setuptools typing-extensions ]; |
|
|
|
propagatedBuildInputs = [ zope_interface incremental automat constantly hyperlink pyhamcrest attrs setuptools typing-extensions ]; |
|
|
|
|
|
|
|
|
|
|
|
passthru.extras.tls = [ pyopenssl service-identity idna ]; |
|
|
|
passthru.extras-require = rec { |
|
|
|
|
|
|
|
tls = [ pyopenssl service-identity idna ]; |
|
|
|
|
|
|
|
conch = [ pyasn1 cryptography appdirs bcrypt ]; |
|
|
|
|
|
|
|
conch_nacl = conch ++ [ pynacl ]; |
|
|
|
|
|
|
|
serial = [ pyserial ]; |
|
|
|
|
|
|
|
http2 = [ h2 priority ]; |
|
|
|
|
|
|
|
contextvars = lib.optionals (pythonOlder "3.7") [ contextvars ]; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
# Patch t.p._inotify to point to libc. Without this, |
|
|
|
# Patch t.p._inotify to point to libc. Without this, |
|
|
|
# twisted.python.runtime.platform.supportsINotify() == False |
|
|
|
# twisted.python.runtime.platform.supportsINotify() == False |
|
|
|