57 lines
1.0 KiB
Nix
57 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
replaceVars,
|
|
graphviz,
|
|
pytestCheckHook,
|
|
chardet,
|
|
parameterized,
|
|
pythonOlder,
|
|
pyparsing,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pydot";
|
|
version = "4.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-EvFkkzN8reL3YxuHyMzSmbouJR8+5dBzKgWN8oh6/pc=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [ pyparsing ];
|
|
|
|
nativeCheckInputs = [
|
|
chardet
|
|
parameterized
|
|
pytestCheckHook
|
|
];
|
|
|
|
patches = [
|
|
(replaceVars ./hardcode-graphviz-path.patch {
|
|
inherit graphviz;
|
|
})
|
|
];
|
|
|
|
enabledTestPaths = [ "test/test_pydot.py" ];
|
|
|
|
pythonImportsCheck = [ "pydot" ];
|
|
|
|
meta = {
|
|
description = "Allows to create both directed and non directed graphs from Python";
|
|
homepage = "https://github.com/erocarrera/pydot";
|
|
changelog = "https://github.com/pydot/pydot/blob/v${version}/ChangeLog";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|