gdtoolkit: fix lark override
This commit is contained in:
parent
01e90b2196
commit
5ead10de97
1 changed files with 23 additions and 18 deletions
|
@ -1,23 +1,28 @@
|
||||||
{ lib
|
{ lib
|
||||||
, python3Packages
|
, python3
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, godot3-server
|
, godot3-server
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let lark080 = python3Packages.lark.overrideAttrs (old: rec {
|
let
|
||||||
# gdtoolkit needs exactly this lark version
|
python = python3.override {
|
||||||
version = "0.8.0";
|
packageOverrides = self: super: {
|
||||||
src = fetchFromGitHub {
|
lark = super.lark.overridePythonAttrs (old: rec {
|
||||||
owner = "lark-parser";
|
# gdtoolkit needs exactly this lark version
|
||||||
repo = "lark";
|
version = "0.8.0";
|
||||||
rev = version;
|
src = fetchFromGitHub {
|
||||||
hash = "sha256-KN9buVlH8hJ8t0ZP5yefeYM5vH5Gg7a7TEDGKJYpozs=";
|
owner = "lark-parser";
|
||||||
fetchSubmodules = true;
|
repo = "lark";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-KN9buVlH8hJ8t0ZP5yefeYM5vH5Gg7a7TEDGKJYpozs=";
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue