nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchFromGitHub,
6 setuptools,
7 setuptools-scm,
8 numpy,
9 qt6,
10 qtpy,
11 pyqt6,
12 mesa,
13 pytestCheckHook,
14 pytest-cov-stub,
15}:
16
17buildPythonPackage rec {
18 pname = "echo";
19 version = "0.11.1";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "glue-viz";
24 repo = "echo";
25 tag = "v${version}";
26 sha256 = "sha256-aeewirt3jNZLZUkM0Gis6nhUS/ezlKHlk6wlwgtoC4w=";
27 };
28
29 build-system = [
30 setuptools
31 setuptools-scm
32 ];
33
34 nativeBuildInputs = [
35 qt6.wrapQtAppsHook
36 ];
37
38 dependencies = [
39 qt6.qtconnectivity
40 qt6.qtbase
41 qt6.qttools
42 pyqt6
43 numpy
44 qtpy
45 ];
46
47 doCheck = lib.meta.availableOn stdenv.hostPlatform mesa.llvmpipeHook;
48
49 preCheck = ''
50 export QT_QPA_PLATFORM=offscreen
51 '';
52
53 nativeCheckInputs = [
54 mesa.llvmpipeHook
55 pytestCheckHook
56 pytest-cov-stub
57 ];
58
59 pythonImportsCheck = [ "echo" ];
60
61 meta = {
62 homepage = "https://github.com/glue-viz/echo";
63 description = "Callback Properties in Python";
64 license = lib.licenses.mit;
65 maintainers = with lib.maintainers; [ ifurther ];
66 };
67}