Merge pull request #132900 from PrivateStorageio/twisted-to-21.7.0

authored by

Sandro and committed by
GitHub
00ca3a1f e0701ba2

+68 -43
+6
maintainers/maintainer-list.nix
··· 3419 3419 githubId = 454695; 3420 3420 name = "Artur Taranchiev"; 3421 3421 }; 3422 + exarkun = { 3423 + email = "exarkun@twistedmatrix.com"; 3424 + github = "exarkun"; 3425 + githubId = 254565; 3426 + name = "Jean-Paul Calderone"; 3427 + }; 3422 3428 exfalso = { 3423 3429 email = "0slemi0@gmail.com"; 3424 3430 github = "exfalso";
+3 -3
pkgs/development/libraries/thrift/0.10.nix
··· 1 - { lib, stdenv, fetchurl, boost, zlib, libevent, openssl, python, pkg-config, bison 2 - , flex, twisted 1 + { lib, stdenv, fetchurl, boost, zlib, libevent, openssl, python3, pkg-config, bison 2 + , flex 3 3 }: 4 4 5 5 stdenv.mkDerivation rec { ··· 19 19 20 20 nativeBuildInputs = [ pkg-config ]; 21 21 buildInputs = [ 22 - boost zlib libevent openssl python bison flex twisted 22 + boost zlib libevent openssl bison flex (python3.withPackages (ps: [ps.twisted])) 23 23 ]; 24 24 25 25 preConfigure = "export PY_PREFIX=$out";
+3 -3
pkgs/development/libraries/thrift/default.nix
··· 1 - { lib, stdenv, fetchurl, boost, zlib, libevent, openssl, python, cmake, pkg-config 2 - , bison, flex, twisted 1 + { lib, stdenv, fetchurl, boost, zlib, libevent, openssl, python3, cmake, pkg-config 2 + , bison, flex 3 3 , static ? stdenv.hostPlatform.isStatic 4 4 }: 5 5 ··· 18 18 19 19 nativeBuildInputs = [ cmake pkg-config bison flex ]; 20 20 buildInputs = [ boost zlib libevent openssl ] 21 - ++ lib.optionals (!static) [ python twisted ]; 21 + ++ lib.optionals (!static) [ (python3.withPackages (ps: [ps.twisted])) ]; 22 22 23 23 preConfigure = "export PY_PREFIX=$out"; 24 24
+10 -16
pkgs/development/python-modules/klein/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, fetchpatch 2 - , six, twisted, werkzeug, incremental 3 - , mock }: 1 + { lib, buildPythonPackage, fetchPypi, python 2 + , attrs, enum34, hyperlink, incremental, six, twisted, typing, tubes, werkzeug, zope_interface 3 + , hypothesis, treq 4 + }: 4 5 5 6 buildPythonPackage rec { 6 7 pname = "klein"; 7 - version = "17.10.0"; 8 + version = "21.8.0"; 8 9 9 10 src = fetchPypi { 10 11 inherit pname version; 11 - sha256 = "30aaf0d78a987d5dbfe0968a07367ad0c73e02823cc8eef4c54f80ab848370d0"; 12 + sha256 = "1mpydmz90d0n9dwa7mr6pgj5v0kczfs05ykssrasdq368dssw7ch"; 12 13 }; 13 14 14 - patches = [ 15 - (fetchpatch { 16 - name = "tests-expect-werkzeug-308.patch"; 17 - url = "https://github.com/twisted/klein/commit/e2a5835b83e37a2bc5faefbfe1890c529b18b9c6.patch"; 18 - sha256 = "03j0bj3l3hnf7f96rb27i4bzy1iih79ll5bcah7gybdi1wpznh8w"; 19 - }) 20 - ]; 15 + propagatedBuildInputs = [ attrs enum34 hyperlink incremental six twisted typing tubes werkzeug zope_interface ]; 21 16 22 - propagatedBuildInputs = [ six twisted werkzeug incremental ]; 23 - 24 - checkInputs = [ mock twisted ]; 17 + checkInputs = [ hypothesis treq ]; 25 18 26 19 checkPhase = '' 27 - trial klein 20 + ${python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES klein 28 21 ''; 29 22 30 23 meta = with lib; { 31 24 description = "Klein Web Micro-Framework"; 32 25 homepage = "https://github.com/twisted/klein"; 33 26 license = licenses.mit; 27 + maintainers = with maintainers; [ exarkun ]; 34 28 }; 35 29 }
+29
pkgs/development/python-modules/tubes/default.nix
··· 1 + { lib, buildPythonPackage, fetchPypi, python 2 + , characteristic, six, twisted 3 + }: 4 + 5 + buildPythonPackage rec { 6 + pname = "tubes"; 7 + version = "0.2.0"; 8 + 9 + src = fetchPypi { 10 + pname = "Tubes"; 11 + inherit version; 12 + sha256 = "0sg1gg2002h1xsgxigznr1zk1skwmhss72dzk6iysb9k9kdgymcd"; 13 + }; 14 + 15 + propagatedBuildInputs = [ characteristic six twisted ]; 16 + 17 + checkPhase = '' 18 + ${python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES tubes 19 + ''; 20 + 21 + pythonImportsCheck = [ "tubes" ]; 22 + 23 + meta = with lib; { 24 + description = "a data-processing and flow-control engine for event-driven programs"; 25 + homepage = "https://github.com/twisted/tubes"; 26 + license = licenses.mit; 27 + maintainers = with maintainers; [ exarkun ]; 28 + }; 29 + }
+6 -5
pkgs/development/python-modules/twisted/default.nix
··· 13 13 , service-identity 14 14 , setuptools 15 15 , idna 16 + , typing-extensions 16 17 }: 17 18 buildPythonPackage rec { 18 19 pname = "Twisted"; 19 - version = "20.3.0"; 20 + version = "21.7.0"; 20 21 21 22 src = fetchPypi { 22 23 inherit pname version; 23 - extension = "tar.bz2"; 24 - sha256 = "040yzha6cyshnn6ljgk2birgh6mh2cnra48xp5ina5vfsnsmab6p"; 24 + extension = "tar.gz"; 25 + sha256 = "01lh225d7lfnmfx4f4kxwl3963gjc9yg8jfkn1w769v34ia55mic"; 25 26 }; 26 27 27 - propagatedBuildInputs = [ zope_interface incremental automat constantly hyperlink pyhamcrest attrs setuptools ]; 28 + propagatedBuildInputs = [ zope_interface incremental automat constantly hyperlink pyhamcrest attrs setuptools typing-extensions ]; 28 29 29 30 passthru.extras.tls = [ pyopenssl service-identity idna ]; 30 31 ··· 32 33 # twisted.python.runtime.platform.supportsINotify() == False 33 34 patchPhase = lib.optionalString stdenv.isLinux '' 34 35 substituteInPlace src/twisted/python/_inotify.py --replace \ 35 - "ctypes.util.find_library('c')" "'${stdenv.glibc.out}/lib/libc.so.6'" 36 + "ctypes.util.find_library(\"c\")" "'${stdenv.glibc.out}/lib/libc.so.6'" 36 37 ''; 37 38 38 39 # Generate Twisted's plug-in cache. Twisted users must do it as well. See
+7 -10
pkgs/development/python-modules/txtorcon/default.nix
··· 1 - {lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted 1 + { lib, python, buildPythonPackage, pythonOlder, fetchPypi, isPy3k, incremental, ipaddress, twisted 2 2 , automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof 3 3 , GeoIP, isPy27}: 4 4 ··· 18 18 sha256 = "aebf0b9ec6c69a029f6b61fd534e785692e28fdcd2fd003ce3cc132b9393b7d6"; 19 19 }; 20 20 21 - # zope.interface issue 22 - doCheck = isPy3k; 23 - # Skip a failing test until fixed upstream: 24 - # https://github.com/meejah/txtorcon/issues/250 21 + # Based on what txtorcon tox.ini will automatically test, allow back as far 22 + # as Python 3.5. 23 + disabled = pythonOlder "3.5"; 24 + 25 25 checkPhase = '' 26 - pytest --ignore=test/test_util.py . 26 + ${python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES ./test 27 27 ''; 28 28 29 29 meta = { 30 30 description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions"; 31 31 homepage = "https://github.com/meejah/txtorcon"; 32 - maintainers = with lib.maintainers; [ jluttine ]; 33 - # Currently broken on Python 2.7. See 34 - # https://github.com/NixOS/nixpkgs/issues/71826 35 - broken = isPy27; 32 + maintainers = with lib.maintainers; [ jluttine exarkun ]; 36 33 license = lib.licenses.mit; 37 34 }; 38 35 }
+2 -6
pkgs/top-level/all-packages.nix
··· 18920 18920 18921 18921 theft = callPackage ../development/libraries/theft { }; 18922 18922 18923 - thrift = callPackage ../development/libraries/thrift { 18924 - inherit (pythonPackages) twisted; 18925 - }; 18923 + thrift = callPackage ../development/libraries/thrift { }; 18926 18924 18927 - thrift-0_10 = callPackage ../development/libraries/thrift/0.10.nix { 18928 - inherit (pythonPackages) twisted; 18929 - }; 18925 + thrift-0_10 = callPackage ../development/libraries/thrift/0.10.nix { }; 18930 18926 18931 18927 tidyp = callPackage ../development/libraries/tidyp { }; 18932 18928
+2
pkgs/top-level/python-packages.nix
··· 8924 8924 8925 8925 ttp = callPackage ../development/python-modules/ttp { }; 8926 8926 8927 + tubes = callPackage ../development/python-modules/tubes { }; 8928 + 8927 8929 tunigo = callPackage ../development/python-modules/tunigo { }; 8928 8930 8929 8931 tubeup = callPackage ../development/python-modules/tubeup { };