2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
docutils,
|
|
|
|
ephem,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchpatch,
|
|
|
|
funcparserlib,
|
|
|
|
pillow,
|
|
|
|
pynose,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
reportlab,
|
|
|
|
setuptools,
|
|
|
|
webcolors,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "blockdiag";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "3.0.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2021-12-30 13:39:12 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "blockdiag";
|
|
|
|
repo = "blockdiag";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-j8FoNUIJJOaahaol1MRPyY2jcPCEIlaAD4bmM2QKFFI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/blockdiag/blockdiag/pull/179
|
|
|
|
(fetchpatch {
|
|
|
|
name = "pillow-10-compatibility.patch";
|
|
|
|
url = "https://github.com/blockdiag/blockdiag/commit/20d780cad84e7b010066cb55f848477957870165.patch";
|
|
|
|
hash = "sha256-t1zWFzAsLL2EUa0nD4Eui4Y5AhAZLRmp/yC9QpzzeUA=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
docutils
|
2021-12-30 13:39:12 +00:00
|
|
|
funcparserlib
|
|
|
|
pillow
|
|
|
|
reportlab
|
2024-04-21 15:54:59 +00:00
|
|
|
webcolors
|
2021-12-30 13:39:12 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-30 13:39:12 +00:00
|
|
|
ephem
|
2024-04-21 15:54:59 +00:00
|
|
|
pynose
|
2021-12-30 13:39:12 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "src/blockdiag/tests/" ];
|
2021-12-30 13:39:12 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test require network access
|
|
|
|
"test_app_cleans_up_images"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "blockdiag" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generate block-diagram image from spec-text file (similar to Graphviz)";
|
|
|
|
homepage = "http://blockdiag.com/";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/blockdiag/blockdiag/blob/${version}/CHANGES.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "blockdiag";
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|