
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
70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
python,
|
|
xvfb-run,
|
|
wrapGAppsHook3,
|
|
gobject-introspection,
|
|
pygobject3,
|
|
graphviz,
|
|
gtk3,
|
|
numpy,
|
|
packaging,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xdot";
|
|
version = "1.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jrfonseca";
|
|
repo = "xdot.py";
|
|
rev = version;
|
|
hash = "sha256-fkO1bINRkCCzVRrQg9+vIODbN+bpXq2OHBKkzzZUZNA=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
graphviz
|
|
gtk3
|
|
];
|
|
|
|
dependencies = [
|
|
pygobject3
|
|
numpy
|
|
packaging
|
|
];
|
|
nativeCheckInputs = [ xvfb-run ];
|
|
|
|
dontWrapGApps = true;
|
|
# Arguments to be passed to `makeWrapper`, only used by buildPython*
|
|
preFixup = ''
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
makeWrapperArgs+=(--prefix PATH : ${lib.makeBinPath [ graphviz ]})
|
|
'';
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' ${python.interpreter} test.py
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Interactive viewer for graphs written in Graphviz's dot";
|
|
mainProgram = "xdot";
|
|
homepage = "https://github.com/jrfonseca/xdot.py";
|
|
license = licenses.lgpl3Plus;
|
|
};
|
|
}
|