X-Git-Url: http://git.scottworley.com/nix-env-apps/blobdiff_plain/b718bf5ead92dffaeadce6dbefc65e7188b7fb20..12e0d984f6f8f40691368b88756d87747b8f0b65:/default.nix diff --git a/default.nix b/default.nix index 17ddac7..a0d1166 100644 --- a/default.nix +++ b/default.nix @@ -1,14 +1,27 @@ -{ pkgs ? import { } }: -pkgs.python3Packages.callPackage ({ buildPythonPackage, gobject-introspection - , gtk4, lib, pygobject3, wrapGAppsHook4, }: +{ pkgs ? import { }, lint ? false }: +pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage + , gobject-introspection, gtk4, lib, mypy, pylint, pygobject3, wrapGAppsHook4, + }: buildPythonPackage rec { pname = "apps"; version = "1.0"; + src = lib.cleanSource ./.; - nativeBuildInputs = [ gobject-introspection wrapGAppsHook4 ]; - buildInputs = [ gtk4 ]; + doCheck = true; + checkPhase = "./test.sh"; + nativeBuildInputs = [ gobject-introspection wrapGAppsHook4 ]; + nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ]; + buildInputs = [ gtk4 ]; pythonPath = [ pygobject3 ]; + meta = { + description = + "A simple GUI for managing declarative nix-env user environments"; + homepage = "https://git.scottworley.com/nix-env-apps"; + license = pkgs.lib.licenses.gpl3; + maintainers = with pkgs.lib.maintainers; [ chkno ]; + }; + }) { }