nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 automat,
5 buildPythonPackage,
6 cryptography,
7 fetchPypi,
8 geoip,
9 lsof,
10 mock,
11 pytestCheckHook,
12 setuptools,
13 twisted,
14 zope-interface,
15}:
16
17buildPythonPackage rec {
18 pname = "txtorcon";
19 version = "24.8.0";
20 pyproject = true;
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-vv4ZE42cjFMHtu5tT+RG0MIB/9HMQErrJl7ZAwmXitA=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 cryptography
31 twisted
32 automat
33 zope-interface
34 ]
35 ++ twisted.optional-dependencies.tls;
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 mock
40 lsof
41 geoip
42 ];
43
44 doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64);
45
46 pythonImportsCheck = [ "txtorcon" ];
47
48 meta = {
49 description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions";
50 homepage = "https://github.com/meejah/txtorcon";
51 changelog = "https://github.com/meejah/txtorcon/releases/tag/v${version}";
52 maintainers = with lib.maintainers; [
53 jluttine
54 exarkun
55 ];
56 license = lib.licenses.mit;
57 };
58}