2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, python
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, cryptography
|
|
|
|
, incremental
|
|
|
|
, twisted
|
|
|
|
, automat
|
|
|
|
, zope_interface
|
|
|
|
, idna
|
|
|
|
, pyopenssl
|
|
|
|
, service-identity
|
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
|
|
|
, lsof
|
|
|
|
, GeoIP
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "txtorcon";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "22.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-iaG2XjKks2nWfmwWY4f7xGjMXQUidEjSOaXn6XGKoFM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
cryptography
|
|
|
|
incremental
|
|
|
|
twisted
|
|
|
|
automat
|
|
|
|
zope_interface
|
|
|
|
] ++ twisted.optional-dependencies.tls;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook mock lsof GeoIP ];
|
2021-08-23 08:02:39 +00:00
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
doCheck = !(stdenv.isDarwin && stdenv.isAarch64);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions";
|
|
|
|
homepage = "https://github.com/meejah/txtorcon";
|
2021-08-23 08:02:39 +00:00
|
|
|
maintainers = with lib.maintainers; [ jluttine exarkun ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|