mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
27337bcf34
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.6-txtorcon/versions
33 lines
1 KiB
Nix
33 lines
1 KiB
Nix
{lib, buildPythonPackage, fetchPypi, isPy3k, incremental, ipaddress, twisted
|
|
, automat, zope_interface, idna, pyopenssl, service-identity, pytest, mock, lsof
|
|
, GeoIP}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "txtorcon";
|
|
version = "18.3.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 = "1c7qfpr1zz34whz66lk4xpwdn7d5jqk6ccgas5n54li479mra0an";
|
|
};
|
|
|
|
# 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;
|
|
};
|
|
}
|