]> git.scottworley.com Git - nix-env-apps/blob - default.nix
mypy, pylint, autopep8, & pre-commit hook to run them
[nix-env-apps] / default.nix
1 { pkgs ? import <nixpkgs> { }, lint ? false }:
2 pkgs.python3Packages.callPackage ({ autopep8, buildPythonPackage
3 , gobject-introspection, gtk4, lib, mypy, pylint, pygobject3, wrapGAppsHook4,
4 }:
5 buildPythonPackage rec {
6 pname = "apps";
7 version = "1.0";
8
9 src = lib.cleanSource ./.;
10
11 doCheck = true;
12 checkPhase = "./test.sh";
13
14 nativeBuildInputs = [ gobject-introspection wrapGAppsHook4 ];
15 nativeCheckInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ];
16 buildInputs = [ gtk4 ];
17 pythonPath = [ pygobject3 ];
18
19 }) { }