Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 66 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, bitvector-for-humans, buildPythonPackage, fetchFromGitHub, hidapi, loguru, poetry-core, pyserial, pytest-mock, pytestCheckHook, pythonOlder, typer, webcolors, udevCheckHook,}:
buildPythonPackage rec { pname = "busylight-for-humans"; version = "0.35.2"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "JnyJny"; repo = "busylight"; tag = "v${version}"; hash = "sha256-0jmaVMN4wwqoO5wGMaV4kJefNUPOuJpWbsqHcZZ0Nh4="; };
build-system = [ poetry-core ];
dependencies = [ bitvector-for-humans hidapi loguru pyserial typer webcolors ];
nativeCheckInputs = [ pytestCheckHook pytest-mock udevCheckHook ];
disabledTestPaths = [ "tests/test_pydantic_models.py" ];
pythonImportsCheck = [ "busylight" ];
postInstall = '' mkdir -p $out/lib/udev/rules.d $out/bin/busylight udev-rules -o $out/lib/udev/rules.d/99-busylight.rules '';
meta = with lib; { description = "Control USB connected presence lights from multiple vendors via the command-line or web API"; homepage = "https://github.com/JnyJny/busylight"; changelog = "https://github.com/JnyJny/busylight/releases/tag/${version}"; license = licenses.asl20; teams = [ teams.helsinki-systems ]; mainProgram = "busylight"; };}