
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
57 lines
1.2 KiB
Nix
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;
|
|
};
|
|
}
|