Merge pull request #210235 from mweinelt/qmk-pyproject

qmk: Use pep517 based setuptools build
This commit is contained in:
Martin Weinelt 2023-02-03 01:10:33 +00:00 committed by GitHub
commit f2cc6232ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,22 +12,18 @@
python3.pkgs.buildPythonApplication rec {
pname = "qmk";
version = "1.1.1";
format = "pyproject";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-3QKOCevNYfi9+MuCkp36/A4AfZelo4A7RYGbRkF3Mmk=";
hash = "sha256-3QKOCevNYfi9+MuCkp36/A4AfZelo4A7RYGbRkF3Mmk=";
};
nativeBuildInputs = with python3.pkgs; [
nose2
setuptools-scm
yapf
setuptools
];
propagatedBuildInputs = with python3.pkgs; [
appdirs
argcomplete
colorama
dotty-dict
hid
hjson
@ -50,14 +46,6 @@ python3.pkgs.buildPythonApplication rec {
pkgsCross.avr.libcCross
];
# buildPythonApplication requires setup.py; the setup.py file crafted below
# acts as a wrapper to setup.cfg
postConfigure = ''
touch setup.py
echo "from setuptools import setup" >> setup.py
echo "setup()" >> setup.py
'';
# no tests implemented
doCheck = false;