diff options
author | Jörg Thalheim <joerg@higgsboson.tk> | 2016-09-28 23:21:17 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@higgsboson.tk> | 2016-09-28 23:22:46 +0200 |
commit | b1dc000df6425a6a5ea1f17f7293e673322f6987 (patch) | |
tree | 03a3888bf317e09ff597ce47dc3110e8202589ae | |
parent | 9ebc98e53dd0b3a0ae71ea8bcdc7b0617c4a588a (diff) | |
download | nixlib-b1dc000df6425a6a5ea1f17f7293e673322f6987.tar nixlib-b1dc000df6425a6a5ea1f17f7293e673322f6987.tar.gz nixlib-b1dc000df6425a6a5ea1f17f7293e673322f6987.tar.bz2 nixlib-b1dc000df6425a6a5ea1f17f7293e673322f6987.tar.lz nixlib-b1dc000df6425a6a5ea1f17f7293e673322f6987.tar.xz nixlib-b1dc000df6425a6a5ea1f17f7293e673322f6987.tar.zst nixlib-b1dc000df6425a6a5ea1f17f7293e673322f6987.zip |
grip: enable tests
-rw-r--r-- | pkgs/top-level/python-packages.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 58666094a93d..8600fe89b9cf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7020,13 +7020,21 @@ in modules // { version = "4.3.2"; name = "grip-${version}"; - src = pkgs.fetchurl { - url = "https://files.pythonhosted.org/packages/8b/9d/698a7a3a8b57c28eacac27f269c9d0da228d20ee734edbe9451e3e0f7cde/${name}.zip"; - sha256 = "0sr6srp4liqjs6hxcy9kp8g5dzbnyfmwcsy2cn6qszkpp9x25w70"; + src = pkgs.fetchFromGitHub { + owner = "joeyespo"; + repo = "grip"; + rev = "v${version}"; + sha256 = "05a169sfaj280k7gibbc1rznjn43l5m6l1gpl6a5cmp5r8827khs"; }; + buildInputs = with self; [ pytest responses ]; propagatedBuildInputs = with self; [ docopt flask markdown path-and-address pygments requests2 ]; + checkPhase = '' + export PATH="$PATH:$out/bin" + py.test -xm "not assumption" + ''; + meta = with stdenv.lib; { description = "Preview GitHub Markdown files like Readme locally before committing them"; homepage = https://github.com/joeyespo/grip; |