gdtoolkit: fix lark override

This commit is contained in:
Robert Schütz 2023-11-28 18:24:00 -08:00
parent 01e90b2196
commit 5ead10de97

View file

@ -1,10 +1,13 @@
{ lib { lib
, python3Packages , python3
, fetchFromGitHub , fetchFromGitHub
, godot3-server , godot3-server
}: }:
let lark080 = python3Packages.lark.overrideAttrs (old: rec { let
python = python3.override {
packageOverrides = self: super: {
lark = super.lark.overridePythonAttrs (old: rec {
# gdtoolkit needs exactly this lark version # gdtoolkit needs exactly this lark version
version = "0.8.0"; version = "0.8.0";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -14,10 +17,12 @@ let lark080 = python3Packages.lark.overrideAttrs (old: rec {
hash = "sha256-KN9buVlH8hJ8t0ZP5yefeYM5vH5Gg7a7TEDGKJYpozs="; hash = "sha256-KN9buVlH8hJ8t0ZP5yefeYM5vH5Gg7a7TEDGKJYpozs=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
}); patches = [ ];
});
};
};
in in
python3Packages.buildPythonApplication rec { python.pkgs.buildPythonApplication rec {
pname = "gdtoolkit"; pname = "gdtoolkit";
version = "3.3.1"; version = "3.3.1";
@ -29,18 +34,18 @@ python3Packages.buildPythonApplication rec {
sha256 = "13nnpwy550jf5qnm9ixpxl1bwfnhhbiys8vqfd25g3aim4bm3gnn"; sha256 = "13nnpwy550jf5qnm9ixpxl1bwfnhhbiys8vqfd25g3aim4bm3gnn";
}; };
disabled = python3Packages.pythonOlder "3.7"; disabled = python.pythonOlder "3.7";
propagatedBuildInputs = [ lark080 propagatedBuildInputs = with python.pkgs; [
] ++ (with python3Packages; [
docopt docopt
lark
pyyaml pyyaml
setuptools setuptools
]); ];
doCheck = true; doCheck = true;
nativeCheckInputs = with python3Packages; [ nativeCheckInputs = with python.pkgs; [
pytestCheckHook pytestCheckHook
hypothesis hypothesis
godot3-server godot3-server