2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
automat,
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
|
|
|
fetchPypi,
|
|
|
|
geoip,
|
|
|
|
idna,
|
|
|
|
incremental,
|
|
|
|
lsof,
|
|
|
|
mock,
|
|
|
|
pyopenssl,
|
|
|
|
pytestCheckHook,
|
|
|
|
python,
|
|
|
|
pythonOlder,
|
|
|
|
service-identity,
|
|
|
|
twisted,
|
|
|
|
zope-interface,
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "txtorcon";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "23.11.0";
|
2023-02-22 10:55:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-cfha6T121yZRAFnJ7XTmCLxaXJ99EDhTtJ5BQoBAai8=";
|
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
|
2024-01-13 08:15:51 +00:00
|
|
|
zope-interface
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ twisted.optional-dependencies.tls;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
lsof
|
2023-03-15 16:39:30 +00:00
|
|
|
geoip
|
2023-02-22 10:55:15 +00:00
|
|
|
];
|
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
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions";
|
|
|
|
homepage = "https://github.com/meejah/txtorcon";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/meejah/txtorcon/releases/tag/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
jluttine
|
|
|
|
exarkun
|
|
|
|
];
|
2023-02-22 10:55:15 +00:00
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|