]> git.scottworley.com Git - auto-upgrade-with-pinch/blob - overlays/pinch.nix
0dad303f43242c049b5c3f4af50bfec1047348db
[auto-upgrade-with-pinch] / overlays / pinch.nix
1 self: super: {
2 pinch = if builtins.hasAttr "pinch" super then
3 super.pinch
4 else
5 self.python3Packages.callPackage
6 ({ buildPythonPackage, fetchgit, nix, git, mypy, }:
7 buildPythonPackage rec {
8 pname = "pinch";
9 version = "1.5";
10 src = fetchgit {
11 url = "https://scottworley.com/pinch.git";
12 rev = version;
13 sha256 = "0si7z78iy8b5dfjs8ijy8bq9fwcfq51syqxijkc6mg5m7awwsf3l";
14 };
15 checkInputs = [ nix git mypy ];
16 doCheck = true;
17 checkPhase = "./test.sh";
18 }) { };
19 }