blob: abf6c957b04798bca98ed4176b30b9d8ee535ab3 (
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, setuptools-scm
, libxcrypt
, numpy
, qt6
, qtpy
, pyqt6
, pytestCheckHook
, pytest-cov
}:
buildPythonPackage rec {
pname = "echo";
version = "0.8.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "glue-viz";
repo = pname;
rev = "v${version}";
sha256 = "sha256-0FmUA7kOFSRZXwbj8d7asujBPOjE2pFhu6TDNSGD4r0=";
};
nativeBuildInputs = [ setuptools setuptools-scm qt6.wrapQtAppsHook ];
buildInputs = lib.optionals (pythonOlder "3.9") [
libxcrypt
];
propagatedBuildInputs = [
qt6.qtconnectivity
qt6.qtbase
qt6.qttools
pyqt6
numpy
qtpy
];
# collecting ... qt.qpa.xcb: could not connect to display
# qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
doCheck = false;
nativeCheckInputs = [
pytestCheckHook
pytest-cov
];
pythonImportsCheck = [ "echo" ];
meta = with lib; {
homepage = "https://github.com/glue-viz/echo";
description = "Callback Properties in Python";
license = licenses.mit;
maintainers = with maintainers; [ ifurther ];
};
}
|