tv nix-prefetch-github: init at 3.0
This commit is contained in:
parent
9ed980f603
commit
83bcb46ce9
@ -10,6 +10,9 @@ self: super: {
|
|||||||
outputHashMode = null;
|
outputHashMode = null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
nix-prefetch-github =
|
||||||
|
self.python3Packages.callPackage ./nix-prefetch-github.nix {};
|
||||||
|
|
||||||
rxvt_unicode = self.callPackage ./rxvt_unicode.nix {
|
rxvt_unicode = self.callPackage ./rxvt_unicode.nix {
|
||||||
rxvt_unicode = super.rxvt_unicode;
|
rxvt_unicode = super.rxvt_unicode;
|
||||||
};
|
};
|
||||||
|
47
tv/5pkgs/override/nix-prefetch-github.nix
Normal file
47
tv/5pkgs/override/nix-prefetch-github.nix
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{ fetchPypi
|
||||||
|
, lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
|
, attrs
|
||||||
|
, click
|
||||||
|
, effect
|
||||||
|
, jinja2
|
||||||
|
, git
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-black
|
||||||
|
, pytestcov
|
||||||
|
, pytest-isort
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "nix-prefetch-github";
|
||||||
|
version = "3.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "sha256-EN+EbVXUaf+id5UsK4EBm/9k9FYaH79g08kblvW60XA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
attrs
|
||||||
|
click
|
||||||
|
effect
|
||||||
|
jinja2
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [ pytestCheckHook pytest-black pytestcov pytest-isort git ];
|
||||||
|
checkPhase = ''
|
||||||
|
pytest -m 'not network'
|
||||||
|
'';
|
||||||
|
|
||||||
|
# latest version of isort will cause tests to fail
|
||||||
|
# ignore tests which are impure
|
||||||
|
disabledTests = [ "isort" "life" "outputs" "fetch_submodules" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Prefetch sources from github";
|
||||||
|
homepage = "https://github.com/seppeljordan/nix-prefetch-github";
|
||||||
|
license = licenses.gpl3;
|
||||||
|
maintainers = with maintainers; [ seppeljordan ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user