My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/python-modules/txtorcon/default.nix

39 lines
1.2 KiB

{lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted
, automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof
, GeoIP, isPy27}:
buildPythonPackage rec {
pname = "txtorcon";
version = "21.1.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;
sha256 = "aebf0b9ec6c69a029f6b61fd534e785692e28fdcd2fd003ce3cc132b9393b7d6";
};
# zope.interface issue
doCheck = isPy3k;
# 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 ];
# Currently broken on Python 2.7. See
# https://github.com/NixOS/nixpkgs/issues/71826
broken = isPy27;
license = lib.licenses.mit;
};
}