1{
2 buildPythonPackage,
3 lib,
4 git,
5 fetchFromGitHub,
6 darwin,
7 setuptools,
8 stdenv,
9 git-annex,
10 pyside6,
11 pyqtdarktheme,
12 datalad-next,
13 outdated,
14 datalad,
15 pytestCheckHook,
16 pytest-qt,
17}:
18
19buildPythonPackage {
20 pname = "datalad-gooey";
21 # many bug fixes on `master` but no new release
22 version = "unstable-2024-02-20";
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "datalad";
27 repo = "datalad-gooey";
28 rev = "5bd6b9257ff1569439d2a77663271f5d665e61b6";
29 hash = "sha256-8779SLcV4wwJ3124lteGzvimDxgijyxa818ZrumPMs4=";
30 };
31
32 build-system = [ setuptools ];
33
34 dependencies = [
35 pyside6
36 pyqtdarktheme
37 datalad-next
38 outdated
39 datalad
40 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.AppleScriptKit ];
41
42 pythonRemoveDeps = [ "applescript" ];
43
44 preCheck = ''
45 export HOME=$TMPDIR
46 '';
47
48 nativeCheckInputs = [
49 pytestCheckHook
50 pytest-qt
51 git
52 git-annex
53 ];
54
55 pythonImportsCheck = [ "datalad_gooey" ];
56
57 meta = {
58 description = "Graphical user interface (GUI) for DataLad";
59 homepage = "https://github.com/datalad/datalad-gooey";
60 license = lib.licenses.mit;
61 maintainers = with lib.maintainers; [ gador ];
62 mainProgram = "datalad-gooey";
63 };
64}