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