diff options
author | Shiryel <contact@shiryel.com> | 2022-02-14 16:34:20 -0300 |
---|---|---|
committer | Shiryel <contact@shiryel.com> | 2022-02-18 19:49:01 -0300 |
commit | e94f50a04463511a18b6360e4e7451cbfc6d0b7f (patch) | |
tree | ad258ba9f352f8f8d1159b54a2c2cd79ce8ecb8b /pkgs/development/python-modules/gdtoolkit | |
parent | 0ad96094120a5846e038bdf8a34781a3c3ae9b7e (diff) | |
download | nixpkgs-e94f50a04463511a18b6360e4e7451cbfc6d0b7f.tar nixpkgs-e94f50a04463511a18b6360e4e7451cbfc6d0b7f.tar.gz nixpkgs-e94f50a04463511a18b6360e4e7451cbfc6d0b7f.tar.bz2 nixpkgs-e94f50a04463511a18b6360e4e7451cbfc6d0b7f.tar.lz nixpkgs-e94f50a04463511a18b6360e4e7451cbfc6d0b7f.tar.xz nixpkgs-e94f50a04463511a18b6360e4e7451cbfc6d0b7f.tar.zst nixpkgs-e94f50a04463511a18b6360e4e7451cbfc6d0b7f.zip |
gdtoolkit: init at 3.3.1
Diffstat (limited to 'pkgs/development/python-modules/gdtoolkit')
-rw-r--r-- | pkgs/development/python-modules/gdtoolkit/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gdtoolkit/default.nix b/pkgs/development/python-modules/gdtoolkit/default.nix new file mode 100644 index 00000000000..5323e12e4c5 --- /dev/null +++ b/pkgs/development/python-modules/gdtoolkit/default.nix @@ -0,0 +1,46 @@ +{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, lark, docopt, pyyaml, setuptools }: + +let lark080 = lark.overrideAttrs (old: rec { + # gdtoolkit needs exactly this lark version + version = "0.8.0"; + src = fetchFromGitHub { + owner = "lark-parser"; + repo = "lark"; + rev = version; + sha256 = "su7kToZ05OESwRCMPG6Z+XlFUvbEb3d8DgsTEcPJMg4="; + }; +}); + +in +buildPythonPackage rec { + pname = "gdtoolkit"; + version = "3.3.1"; + + propagatedBuildInputs = [ + lark080 + docopt + pyyaml + setuptools + ]; + + # If we try to get using fetchPypi it requires GeoIP (but the package dont has that dep!?) + src = fetchFromGitHub { + owner = "Scony"; + repo = "godot-gdscript-toolkit"; + rev = version; + sha256 = "13nnpwy550jf5qnm9ixpxl1bwfnhhbiys8vqfd25g3aim4bm3gnn"; + }; + + disabled = pythonOlder "3.7"; + + # Tests cannot be run because they need network to install additional dependencies using pip and tox + doCheck = false; + pythonImportsCheck = [ "gdtoolkit" "gdtoolkit.formatter" "gdtoolkit.linter" "gdtoolkit.parser" ]; + + meta = with lib; { + description = "Independent set of tools for working with Godot's GDScript - parser, linter and formatter"; + homepage = "https://github.com/Scony/godot-gdscript-toolkit"; + license = licenses.mit; + maintainers = with maintainers; [ shiryel ]; + }; +} |