ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / liblarch / default.nix
blob3700ebb85ddea16b6656496e32af2d3b4d1347e3
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , python
5 , pygobject3
6 , xvfb-run
7 , gobject-introspection
8 , gtk3
9 , pythonOlder
12 buildPythonPackage rec {
13   version = "3.2.0";
14   pname = "liblarch";
15   disabled = pythonOlder "3.5.0";
17   src = fetchFromGitHub {
18     owner = "getting-things-gnome";
19     repo = "liblarch";
20     rev = "v${version}";
21     sha256 = "sha256-A2qChe2z6rAhjRVX5VoHQitebf/nMATdVZQgtlquuYg=";
22   };
24   checkInputs = [
25     gobject-introspection # for setup hook
26     gtk3
27   ];
29   buildInputs = [ gtk3 ];
31   propagatedBuildInputs = [
32     pygobject3
33   ];
35   checkPhase = ''
36     runHook preCheck
37     ${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' \
38       ${python.interpreter} nix_run_setup test
39     runHook postCheck
40   '';
42   meta = with lib; {
43     description = "A python library built to easily handle data structure such are lists, trees and acyclic graphs";
44     homepage = "https://github.com/getting-things-gnome/liblarch";
45     downloadPage = "https://github.com/getting-things-gnome/liblarch/releases";
46     license = licenses.lgpl3Plus;
47     maintainers = with maintainers; [ oyren ];
48     platforms = platforms.linux;
49   };