Merge pull request #105398 from bhipple/add/qmk

This commit is contained in:
Sandro 2020-12-08 02:59:41 +01:00 committed by GitHub
commit f26d039b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,8 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, pythonImportsCheckHook
, makeWrapper
}:
buildPythonPackage rec {
@ -15,6 +17,15 @@ buildPythonPackage rec {
sha256 = "1jc7j790rcqnhbrfj4lhnz3f6768dc55aij840wmx16jylfqpc2n";
};
nativeBuildInputs = [ makeWrapper pythonImportsCheckHook ];
pythonImportsCheck = [ "hjson" ];
postInstall = ''
rm $out/bin/hjson.cmd
wrapProgram $out/bin/hjson --set PYTHONPATH "$PYTHONPATH"
'';
meta = with stdenv.lib; {
description = "A user interface for JSON";
homepage = "https://github.com/hjson/hjson-py";