qmk: 0.0.52 -> 1.0.0

This commit is contained in:
Bastien Riviere 2021-09-07 11:20:44 +02:00 committed by Raphael Megzari
parent 9e3fee0724
commit d4ff22bee8

View File

@ -1,18 +1,18 @@
{ lib
, python3
, fetchpatch
}:
{ lib, python3, fetchpatch, writeText }:
let
inherit (python3.pkgs) buildPythonApplication fetchPypi;
in
buildPythonApplication rec {
setuppy = writeText "setup.py" ''
from setuptools import setup
setup()
'';
in buildPythonApplication rec {
pname = "qmk";
version = "0.0.52";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-mNF+bRhaL6JhNbROmjYDHkKKokRIALd5FZbRt9Kg5XQ=";
sha256 = "sha256-2mLuxzxFSMw3sLm+OTcgLcOjAdwvJmNhDsynUaYQ+co=";
};
nativeBuildInputs = with python3.pkgs; [
@ -27,7 +27,7 @@ buildPythonApplication rec {
appdirs
argcomplete
colorama
dotty-dict
qmk-dotty-dict
hid
hjson
jsonschema
@ -36,6 +36,10 @@ buildPythonApplication rec {
pyusb
];
postConfigure = ''
cp ${setuppy} setup.py
'';
# no tests implemented
doCheck = false;
@ -57,6 +61,6 @@ buildPythonApplication rec {
- ... and many more!
'';
license = licenses.mit;
maintainers = with maintainers; [ bhipple ];
maintainers = with maintainers; [ bhipple babariviere ];
};
}