blob: 58e560c43e6dd71f1b1c242da9534db382c86222 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{
buildPythonPackage,
fetchFromGitHub,
lib,
pythonAtLeast,
pythonOlder,
# runtime
six,
# tests
freezegun,
pytest-mock,
pytestCheckHook,
tornado_4,
}:
buildPythonPackage rec {
pname = "lomond";
version = "0.3.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "wildfoundry";
repo = "dataplicity-${pname}";
rev = "b30dad3cc38d5ff210c5dd01f8c3c76aa6c616d1";
sha256 = "0lydq0imala08wxdyg2iwhqa6gcdrn24ah14h91h2zcxjhjk4gv8";
};
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
'';
propagatedBuildInputs = [ six ];
nativeCheckInputs = [
freezegun
pytest-mock
pytestCheckHook
] ++ lib.optionals (pythonOlder "3.10") [ tornado_4 ];
disabledTests =
[
# Makes HTTP requests
"test_proxy"
"test_live"
]
++ lib.optionals (pythonAtLeast "3.12") [
# https://github.com/wildfoundry/dataplicity-lomond/issues/91
"test_that_on_ping_responds_with_pong"
];
disabledTestPaths = lib.optionals (pythonAtLeast "3.10") [
# requires tornado_4, which is not compatible with python3.10
"tests/test_integration.py"
];
meta = with lib; {
description = "Websocket Client Library";
homepage = "https://github.com/wildfoundry/dataplicity-lomond";
license = licenses.bsd3;
maintainers = with maintainers; [ jamiemagee ];
};
}
|