Skip to content

Commit

Permalink
pythonPackages.nix-prefetch-github: 4.0.2 -> 4.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
seppeljordan authored and Jonathan Ringer committed Dec 8, 2020
1 parent a9ba757 commit 1c6b12d
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions pkgs/development/python-modules/nix-prefetch-github/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 1c6b12d

Please sign in to comment.