Merge pull request #96546 from seppeljordan/update-nix-prefetch-github

nix-prefetch-github: v2.4 -> v3.0
This commit is contained in:
Maximilian Bosch 2020-08-29 18:51:29 +02:00 committed by GitHub
commit 5f51775776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,17 +15,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "nix-prefetch-github"; pname = "nix-prefetch-github";
version = "2.4"; version = "3.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-PVB/cL0NVB5pHxRMjg8TLatvIvHjfCvaRWBanVHYT+E="; sha256 = "sha256-EN+EbVXUaf+id5UsK4EBm/9k9FYaH79g08kblvW60XA=";
}; };
# The tests for this package require nix and network access. That's
# why we cannot execute them inside the building process.
doCheck = false;
propagatedBuildInputs = [ propagatedBuildInputs = [
attrs attrs
click click
@ -34,6 +30,9 @@ buildPythonPackage rec {
]; ];
checkInputs = [ pytestCheckHook pytest-black pytestcov pytest-isort git ]; checkInputs = [ pytestCheckHook pytest-black pytestcov pytest-isort git ];
checkPhase = ''
pytest -m 'not network'
'';
# latest version of isort will cause tests to fail # latest version of isort will cause tests to fail
# ignore tests which are impure # ignore tests which are impure