From c1a6f7a35de34fcfd241198d4c037e57a31e8558 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 12 Jun 2020 01:53:16 -0700 Subject: [PATCH] pinch: 1.3 -> 1.5 --- overlays/pinch.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/overlays/pinch.nix b/overlays/pinch.nix index 29d2293..0dad303 100644 --- a/overlays/pinch.nix +++ b/overlays/pinch.nix @@ -2,13 +2,18 @@ self: super: { pinch = if builtins.hasAttr "pinch" super then super.pinch else - super.writeShellScriptBin "pinch" '' - exec ${self.python3}/bin/python3 ${ - super.fetchgit { + self.python3Packages.callPackage + ({ buildPythonPackage, fetchgit, nix, git, mypy, }: + buildPythonPackage rec { + pname = "pinch"; + version = "1.5"; + src = fetchgit { url = "https://scottworley.com/pinch.git"; - rev = "1.3"; - sha256 = "1l2pq0pqmjh5q8ggmz6sw6bz0nnz0jy92l5qgax8bmpm1qcszmxf"; - } - }/pinch.py "$@" - ''; + rev = version; + sha256 = "0si7z78iy8b5dfjs8ijy8bq9fwcfq51syqxijkc6mg5m7awwsf3l"; + }; + checkInputs = [ nix git mypy ]; + doCheck = true; + checkPhase = "./test.sh"; + }) { }; } -- 2.44.1