Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pygobject3,
xvfb-run,
gobject-introspection,
gtk3,
pythonOlder,
pytest,
setuptools,
}:
buildPythonPackage rec {
pname = "liblarch";
version = "3.2.0";
pyproject = true;
disabled = pythonOlder "3.5";
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 = with lib; {
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 = licenses.lgpl3Plus;
maintainers = with maintainers; [ oyren ];
platforms = platforms.linux;
};
}