2017-09-05 10:16:41 +01:00
|
|
|
{lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted
|
|
|
|
, automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof
|
|
|
|
, GeoIP}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "txtorcon";
|
2019-09-28 19:43:56 +01:00
|
|
|
version = "19.1.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
checkInputs = [ pytest mock lsof GeoIP ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
incremental twisted automat zope_interface
|
|
|
|
# extra dependencies required by twisted[tls]
|
|
|
|
idna pyopenssl service-identity
|
|
|
|
] ++ lib.optionals (!isPy3k) [ ipaddress ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 19:43:56 +01:00
|
|
|
sha256 = "19ayn5w9ayxbb1m84l1s9qlb6kv7sz6sg34mzy8bnidc7qnfbn15";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
2018-02-10 11:11:07 +00:00
|
|
|
# Skip a failing test until fixed upstream:
|
|
|
|
# https://github.com/meejah/txtorcon/issues/250
|
2017-09-05 10:16:41 +01:00
|
|
|
checkPhase = ''
|
2018-02-10 11:11:07 +00:00
|
|
|
pytest --ignore=test/test_util.py .
|
2017-09-05 10:16:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions";
|
|
|
|
homepage = https://github.com/meejah/txtorcon;
|
|
|
|
maintainers = with lib.maintainers; [ jluttine ];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|