depot/third_party/nixpkgs/pkgs/by-name/wi/wireviz/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

41 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";
};
}