Files
nixpkgs/pkgs/development/python-modules/nwdiag/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1.1 KiB
Nix

{
lib,
blockdiag,
fetchFromGitHub,
buildPythonPackage,
pytestCheckHook,
setuptools,
pythonOlder,
}:
buildPythonPackage rec {
pname = "nwdiag";
version = "3.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "blockdiag";
repo = "nwdiag";
tag = version;
hash = "sha256-uKrdkXpL5YBr953sRsHknYg+2/WwrZmyDf8BMA2+0tU=";
};
patches = [ ./fix_test_generate.patch ];
build-system = [ setuptools ];
dependencies = [ blockdiag ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "src/nwdiag/tests/" ];
disabledTests = [
# AttributeError: 'TestRstDirectives' object has no attribute 'assertRegexpMatches'
"svg"
"noviewbox"
];
pythonImportsCheck = [ "nwdiag" ];
meta = {
description = "Generate network-diagram image from spec-text file (similar to Graphviz)";
homepage = "http://blockdiag.com/";
changelog = "https://github.com/blockdiag/nwdiag/blob/${version}/CHANGES.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ bjornfor ];
mainProgram = "rackdiag";
platforms = lib.platforms.unix;
};
}