This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/plover/plover-machine-hid.nix

33 lines
827 B
Nix
Raw Permalink Normal View History

2022-09-30 14:24:31 +00:00
{
callPackage,
buildPythonPackage,
fetchFromGitHub,
lib,
pythonOlder,
hid,
bitstring,
}: let
plover = callPackage ./plover {};
source = builtins.fromJSON (builtins.readFile ./plover-machine-hid.json);
in
buildPythonPackage rec {
2022-10-04 16:47:26 +00:00
pname = "plover_machine_hid";
2022-09-30 14:24:31 +00:00
version = source.date;
src = fetchFromGitHub {
owner = "dnaq";
repo = "plover-machine-hid";
inherit (source) rev sha256;
};
2022-09-30 13:36:15 +00:00
2022-09-30 14:24:31 +00:00
doCheck = false;
disabled = pythonOlder "3.6";
propagatedBuildInputs = [plover hid bitstring];
meta = with lib; {
description = "POC Plover plugin and firmware for the Plover HID protocol";
license = licenses.mit;
};
passthru.updateScript = [../scripts/update-git.sh "https://github.com/dnaq/plover-machine-hid" "plover/plover-machine-hid.json"];
}