about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorSebastian Jordan <sebastian.jordan.mail@googlemail.com>2020-12-07 23:05:06 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2020-12-08 09:27:22 -0800
commit1c6b12dee16d9a87c8616c18e9800d6ea360c661 (patch)
treef2a64fa522e5f9accd15e9aacda0131f5aaa403a /pkgs/development
parenta9ba7578429ccf5f074d003d6c3ba31a5bed7948 (diff)
pythonPackages.nix-prefetch-github: 4.0.2 -> 4.0.3
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/nix-prefetch-github/default.nix27
1 files changed, 12 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/nix-prefetch-github/default.nix b/pkgs/development/python-modules/nix-prefetch-github/default.nix
index d7f203aa4d8de..d4817480e57cc 100644
--- a/pkgs/development/python-modules/nix-prefetch-github/default.nix
+++ b/pkgs/development/python-modules/nix-prefetch-github/default.nix
@@ -1,41 +1,38 @@
-{ fetchPypi
+{ fetchFromGitHub
 , lib
 , buildPythonPackage
-, pythonOlder
 , attrs
 , click
 , effect
-, jinja2
 , git
 , pytestCheckHook
 , pytestcov
-, pytest-isort
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "nix-prefetch-github";
-  version = "4.0.2";
+  version = "4.0.3";
+
+  disabled = pythonOlder "3.7";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "ZdaWIkpJk8AvTZmA76VMTXeOUTrWLe+W3vh/e0zwWB4=";
+  src = fetchFromGitHub {
+    owner = "seppeljordan";
+    repo = "nix-prefetch-github";
+    rev = "v${version}";
+    sha256 = "CLcmwobPrL6NiI/nw+/Dwho/r15owV16Jmt5OcfFqvo=";
   };
 
   propagatedBuildInputs = [
     attrs
     click
     effect
-    jinja2
   ];
 
-  checkInputs = [ pytestCheckHook pytestcov pytest-isort git ];
-  checkPhase = ''
-    pytest -m 'not network'
-  '';
+  checkInputs = [ pytestCheckHook pytestcov git ];
 
-  # latest version of isort will cause tests to fail
   # ignore tests which are impure
-  disabledTests = [ "isort" "life" "outputs" "fetch_submodules" ];
+  disabledTests = [ "network" "requires_nix_build" ];
 
   meta = with lib; {
     description = "Prefetch sources from github";