Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 74 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib,
buildPythonPackage, fetchFromGitHub, pythonOlder,
nix-update-script, pcpp, platformdirs, poetry-core, pydantic, pydantic-settings, pyparsing, pyyaml, tree-sitter, tree-sitter-grammars, versionCheckHook,}:let version = "0.22.1";inbuildPythonPackage { inherit version; pname = "keymap-drawer"; pyproject = true; disabled = pythonOlder "3.12";
src = fetchFromGitHub { owner = "caksoylar"; repo = "keymap-drawer"; tag = "v${version}"; hash = "sha256-X3O5yspEdey03YQ6JsYN/DE9NUiq148u1W6LQpUQ3ns="; };
build-system = [ poetry-core ];
pythonRelaxDeps = [ "tree-sitter-devicetree" ];
dependencies = [ pcpp platformdirs pydantic pydantic-settings pyparsing pyyaml tree-sitter tree-sitter-grammars.tree-sitter-devicetree ];
nativeCheckInputs = [ versionCheckHook ];
pythonImportsCheck = [ "keymap_drawer" ];
versionCheckProgram = "${placeholder "out"}/bin/keymap"; versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = { description = "Module and CLI tool to help parse and draw keyboard layouts"; homepage = "https://github.com/caksoylar/keymap-drawer"; changelog = "https://github.com/caksoylar/keymap-drawer/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ MattSturgeon ]; mainProgram = "keymap"; };}