]> git.scottworley.com Git - pinch/blob - default.nix
6ad80dfb5fc36060b30e55825168023a6dae4e26
[pinch] / default.nix
1 { pkgs ? import <nixpkgs> { }, lint ? false }:
2 pkgs.python3Packages.callPackage
3 ({ lib, buildPythonPackage, nix, git, autopep8, mypy, pylint, }:
4 buildPythonPackage rec {
5 pname = "pinch";
6 version = "2.1.1";
7 src = lib.cleanSource ./.;
8 checkInputs = [ nix git mypy ] ++ lib.optionals lint [ autopep8 pylint ];
9 doCheck = true;
10 checkPhase = "./test.sh";
11 }) { }