mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
pythonPackages.nix-prefetch-github: 4.0.2 -> 4.0.3
This commit is contained in:
parent
a9ba757842
commit
1c6b12dee1
1 changed files with 12 additions and 15 deletions
|
@ -1,41 +1,38 @@
|
||||||
{ fetchPypi
|
{ fetchFromGitHub
|
||||||
, lib
|
, lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
|
||||||
, attrs
|
, attrs
|
||||||
, click
|
, click
|
||||||
, effect
|
, effect
|
||||||
, jinja2
|
|
||||||
, git
|
, git
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytestcov
|
, pytestcov
|
||||||
, pytest-isort
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "nix-prefetch-github";
|
pname = "nix-prefetch-github";
|
||||||
version = "4.0.2";
|
version = "4.0.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
disabled = pythonOlder "3.7";
|
||||||
inherit pname version;
|
|
||||||
sha256 = "ZdaWIkpJk8AvTZmA76VMTXeOUTrWLe+W3vh/e0zwWB4=";
|
src = fetchFromGitHub {
|
||||||
|
owner = "seppeljordan";
|
||||||
|
repo = "nix-prefetch-github";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "CLcmwobPrL6NiI/nw+/Dwho/r15owV16Jmt5OcfFqvo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
attrs
|
attrs
|
||||||
click
|
click
|
||||||
effect
|
effect
|
||||||
jinja2
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook pytestcov pytest-isort git ];
|
checkInputs = [ pytestCheckHook pytestcov git ];
|
||||||
checkPhase = ''
|
|
||||||
pytest -m 'not network'
|
|
||||||
'';
|
|
||||||
|
|
||||||
# latest version of isort will cause tests to fail
|
|
||||||
# ignore tests which are impure
|
# ignore tests which are impure
|
||||||
disabledTests = [ "isort" "life" "outputs" "fetch_submodules" ];
|
disabledTests = [ "network" "requires_nix_build" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Prefetch sources from github";
|
description = "Prefetch sources from github";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue