Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.2 kB view raw
1{lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted 2, automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof 3, GeoIP, isPy27}: 4 5buildPythonPackage rec { 6 pname = "txtorcon"; 7 version = "20.0.0"; 8 9 checkInputs = [ pytest mock lsof GeoIP ]; 10 propagatedBuildInputs = [ 11 incremental twisted automat zope_interface 12 # extra dependencies required by twisted[tls] 13 idna pyopenssl service-identity 14 ] ++ lib.optionals (!isPy3k) [ ipaddress ]; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "0yipb41w2icbj50d3z1j92d8w6xhbqd1rnmd31vzb5k3g20x0b0j"; 19 }; 20 21 # zope.interface issue 22 doCheck = isPy3k; 23 # Skip a failing test until fixed upstream: 24 # https://github.com/meejah/txtorcon/issues/250 25 checkPhase = '' 26 pytest --ignore=test/test_util.py . 27 ''; 28 29 meta = { 30 description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions"; 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; 36 license = lib.licenses.mit; 37 }; 38}