1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 dpkt,
7 pyyaml,
8 pythonOlder,
9 pytestCheckHook,
10}:
11buildPythonPackage {
12 pname = "ts1-signatures";
13 version = "0-unstable-2024-08-10";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "yifeikong";
20 repo = "th1";
21 rev = "efa682bd37c668ae00d2225deb753e01f6cd1406";
22 hash = "sha256-fz5EFPO5UPPbFnqe4wE1y2lIROPByse9awyBa49o8ZE=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 dpkt
29 pyyaml
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 disabledTests = [
35 "test_nghttpd_log_parsing" # Attempts to load things from logs/ which it cannot find for some reason.
36 ];
37
38 meta = {
39 description = "TLS and HTTP signature and fingerprint library";
40 homepage = "https://github.com/yifeikong/th1";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ ggg ];
43 };
44}