2021-09-18 10:52:07 +00:00
|
|
|
{ lib, python3, fetchpatch, writeText }:
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
let
|
|
|
|
inherit (python3.pkgs) buildPythonApplication fetchPypi;
|
2021-09-18 10:52:07 +00:00
|
|
|
setuppy = writeText "setup.py" ''
|
|
|
|
from setuptools import setup
|
|
|
|
setup()
|
|
|
|
'';
|
|
|
|
in buildPythonApplication rec {
|
2021-04-05 15:23:46 +00:00
|
|
|
pname = "qmk";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.0.0";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
src = fetchPypi {
|
2021-04-05 15:23:46 +00:00
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-2mLuxzxFSMw3sLm+OTcgLcOjAdwvJmNhDsynUaYQ+co=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
2021-07-03 03:11:41 +00:00
|
|
|
flake8
|
|
|
|
nose2
|
|
|
|
pep8-naming
|
2021-04-05 15:23:46 +00:00
|
|
|
setuptools-scm
|
2021-07-03 03:11:41 +00:00
|
|
|
yapf
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2021-07-03 03:11:41 +00:00
|
|
|
appdirs
|
|
|
|
argcomplete
|
|
|
|
colorama
|
2021-09-18 10:52:07 +00:00
|
|
|
qmk-dotty-dict
|
2021-07-03 03:11:41 +00:00
|
|
|
hid
|
|
|
|
hjson
|
|
|
|
jsonschema
|
2021-04-05 15:23:46 +00:00
|
|
|
milc
|
2021-07-03 03:11:41 +00:00
|
|
|
pygments
|
|
|
|
pyusb
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
postConfigure = ''
|
|
|
|
cp ${setuppy} setup.py
|
|
|
|
'';
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
# no tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/qmk/qmk_cli";
|
2021-07-03 03:11:41 +00:00
|
|
|
description = "A program to help users work with QMK Firmware";
|
|
|
|
longDescription = ''
|
|
|
|
qmk_cli is a companion tool to QMK firmware. With it, you can:
|
|
|
|
|
|
|
|
- Interact with your qmk_firmware tree from any location
|
|
|
|
- Use qmk clone to pull down anyone's qmk_firmware fork
|
|
|
|
- Setup and work with your build environment:
|
|
|
|
- qmk setup
|
|
|
|
- qmk doctor
|
|
|
|
- qmk compile
|
|
|
|
- qmk console
|
|
|
|
- qmk flash
|
|
|
|
- qmk lint
|
|
|
|
- ... and many more!
|
|
|
|
'';
|
2021-04-05 15:23:46 +00:00
|
|
|
license = licenses.mit;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ bhipple babariviere ];
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
}
|