aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/liblarch/default.nix
blob: 30b52be0b850bd9221d7a3e651eb450bcdd2b13c (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
{ stdenv
, fetchFromGitHub
, buildPythonPackage
, python
, pygobject3
, xvfb_run
, gobject-introspection
, gtk3
, pythonOlder
}:

buildPythonPackage rec {
  version = "3.0.1";
  pname = "liblarch";
  disabled = pythonOlder "3.5.0";

  src = fetchFromGitHub {
    owner = "getting-things-gnome";
    repo = "liblarch";
    rev = "v${version}";
    sha256 = "0xv2mfvyzipbny3iz8vll77wsqxfwh28xj6bj1ff0l452waph45m";
  };

  checkInputs = [
    gobject-introspection # for setup hook
    gtk3
  ];

  propagatedBuildInputs = [
    pygobject3
  ];

  checkPhase = ''
    runHook preCheck
    ${xvfb_run}/bin/xvfb-run -s '-screen 0 800x600x24' \
      ${python.interpreter} nix_run_setup test
    runHook postCheck
  '';

  meta = with stdenv.lib; {
    description = "A python library built to easily handle data structure such are lists, trees and acyclic graphs";
    homepage = "https://github.com/getting-things-gnome/liblarch";
    downloadPage = "https://github.com/getting-things-gnome/liblarch/releases";
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ oyren ];
    platforms = platforms.linux;
  };
}