blob: 0db323c1c46a666a97cc746f52c13570f019cac7 (
plain)
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
66
67
68
69
70
71
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
matplotlib,
legacy-cgi,
python-snap7,
opencv4,
}:
buildPythonPackage rec {
pname = "remi";
version = "2022.7.27";
pyproject = true;
src = fetchFromGitHub {
owner = "rawpython";
repo = "remi";
rev = version;
hash = "sha256-VQn+Uzp6oGSit8ot0e8B0C2N41Q8+J+o91skyVN1gDA=";
};
preCheck = ''
# for some reason, REMI already deal with these using try blocks, but they fail
substituteInPlace test/test_widget.py \
--replace-fail \
"from html_validator import " \
"from .html_validator import "
substituteInPlace test/test_examples_app.py \
--replace-fail \
"from mock_server_and_request import " \
"from .mock_server_and_request import " \
--replace-fail \
"from html_validator import " \
"from .html_validator import "
# Halves number of warnings
substituteInPlace test/test_*.py \
--replace-quiet \
"self.assertEquals(" \
"self.assertEqual("
'';
build-system = [ setuptools ];
dependencies = [
setuptools # pkg_resources is referenced at runtime
legacy-cgi
];
nativeCheckInputs = [
pytestCheckHook
python-snap7
opencv4
matplotlib
];
pythonImportsCheck = [
"remi"
"editor"
"editor.widgets"
];
meta = {
description = "Pythonic, lightweight and websocket-based webui library";
homepage = "https://github.com/rawpython/remi";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ pbsds ];
};
}
|