3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/txtorcon/default.nix

34 lines
1 KiB
Nix
Raw Normal View History

{lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted
, automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof
, GeoIP}:
buildPythonPackage rec {
pname = "txtorcon";
2018-02-26 17:47:31 +00:00
version = "0.20.0";
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;
2018-02-26 17:47:31 +00:00
sha256 = "dc80cb76b3ddacef6d671c0a088cb1a45274c0858554c32ce55d0f41421c740e";
};
# Skip a failing test until fixed upstream:
# https://github.com/meejah/txtorcon/issues/250
checkPhase = ''
pytest --ignore=test/test_util.py .
'';
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;
};
}