biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / liblarch / default.nix
blob4dae337ca1f220624342b43a550529c89c6cb266
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   pygobject3,
6   xvfb-run,
7   gobject-introspection,
8   gtk3,
9   pythonOlder,
10   pytest,
13 buildPythonPackage rec {
14   version = "3.2.0";
15   format = "setuptools";
16   pname = "liblarch";
17   disabled = pythonOlder "3.5.0";
19   src = fetchFromGitHub {
20     owner = "getting-things-gnome";
21     repo = "liblarch";
22     rev = "v${version}";
23     hash = "sha256-A2qChe2z6rAhjRVX5VoHQitebf/nMATdVZQgtlquuYg=";
24   };
26   nativeCheckInputs = [
27     gobject-introspection # for setup hook
28     gtk3
29     pytest
30   ];
32   buildInputs = [ gtk3 ];
34   propagatedBuildInputs = [ pygobject3 ];
36   checkPhase = ''
37     runHook preCheck
38     ${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' pytest
39     runHook postCheck
40   '';
42   meta = with lib; {
43     description = "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   };