depot/third_party/nixpkgs/pkgs/development/python-modules/blockdiag/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

66 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, docutils
, fetchFromGitHub
, funcparserlib
, nose
, pillow
, ephem
, pythonOlder
, pytestCheckHook
, reportlab
, setuptools
, webcolors
, python
}:
buildPythonPackage rec {
pname = "blockdiag";
version = "3.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "blockdiag";
repo = "blockdiag";
rev = version;
hash = "sha256-j8FoNUIJJOaahaol1MRPyY2jcPCEIlaAD4bmM2QKFFI=";
};
propagatedBuildInputs = [
setuptools
funcparserlib
pillow
webcolors
reportlab
docutils
];
nativeCheckInputs = [
ephem
nose
pytestCheckHook
];
pytestFlagsArray = [
"src/blockdiag/tests/"
];
disabledTests = [
# Test require network access
"test_app_cleans_up_images"
];
pythonImportsCheck = [
"blockdiag"
];
meta = with lib; {
description = "Generate block-diagram image from spec-text file (similar to Graphviz)";
homepage = "http://blockdiag.com/";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
}