blob: 077fe17f62b74cc225d1995b8da27cdbb7016682 (
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
49
50
51
52
53
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
pygobject3,
xvfb-run,
gobject-introspection,
gtk3,
pytest,
setuptools,
}:
buildPythonPackage rec {
pname = "liblarch";
version = "3.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "getting-things-gnome";
repo = "liblarch";
rev = "v${version}";
hash = "sha256-A2qChe2z6rAhjRVX5VoHQitebf/nMATdVZQgtlquuYg=";
};
build-system = [
setuptools
];
nativeCheckInputs = [
gobject-introspection # for setup hook
gtk3
pytest
];
buildInputs = [ gtk3 ];
propagatedBuildInputs = [ pygobject3 ];
checkPhase = ''
runHook preCheck
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' pytest
runHook postCheck
'';
meta = {
description = "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 = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ oyren ];
platforms = lib.platforms.linux;
};
}
|