Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 33 lines 1.0 kB view raw
1{lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted 2, automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof 3, GeoIP}: 4 5buildPythonPackage rec { 6 pname = "txtorcon"; 7 version = "19.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 = "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"; 19 }; 20 21 # Skip a failing test until fixed upstream: 22 # https://github.com/meejah/txtorcon/issues/250 23 checkPhase = '' 24 pytest --ignore=test/test_util.py . 25 ''; 26 27 meta = { 28 description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions"; 29 homepage = https://github.com/meejah/txtorcon; 30 maintainers = with lib.maintainers; [ jluttine ]; 31 license = lib.licenses.mit; 32 }; 33}