nixpkgs/pkgs/by-name/wi/wireviz/package.nix
2024-07-19 03:54:09 +00:00

42 lines
778 B
Nix

{ lib
, python3
, fetchPypi
}:
python3.pkgs.buildPythonApplication rec {
pname = "wireviz";
version = "0.4.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-DiWtjC46Jpp91Kf0Xk6NME234EMrGEOmIKz6a+cFcOE=";
};
nativeBuildInputs = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
propagatedBuildInputs = with python3.pkgs; [
click
graphviz
pillow
pyyaml
];
pythonImportsCheck = [
"wireviz"
"wireviz.wireviz"
"wireviz.wv_cli"
];
meta = with lib; {
description = "Easily document cables and wiring harnesses";
homepage = "https://pypi.org/project/wireviz/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ pinpox ];
mainProgram = "wireviz";
};
}