nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 29 lines 942 B view raw
1{ lib, stdenv, python, buildPythonPackage, pythonOlder, fetchPypi, isPy3k, incremental, ipaddress, twisted 2, automat, zope_interface, idna, pyopenssl, service-identity, pytestCheckHook, mock, lsof 3, GeoIP }: 4 5buildPythonPackage rec { 6 pname = "txtorcon"; 7 version = "22.0.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "sha256-iaG2XjKks2nWfmwWY4f7xGjMXQUidEjSOaXn6XGKoFM="; 12 }; 13 14 propagatedBuildInputs = [ 15 incremental twisted automat zope_interface 16 ] ++ twisted.optional-dependencies.tls 17 ++ lib.optionals (!isPy3k) [ ipaddress ]; 18 19 checkInputs = [ pytestCheckHook mock lsof GeoIP ]; 20 21 doCheck = !(stdenv.isDarwin && stdenv.isAarch64); 22 23 meta = { 24 description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions"; 25 homepage = "https://github.com/meejah/txtorcon"; 26 maintainers = with lib.maintainers; [ jluttine exarkun ]; 27 license = lib.licenses.mit; 28 }; 29}