diff options
author | tv <tv@krebsco.de> | 2020-10-15 14:24:58 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2020-10-15 15:08:25 +0200 |
commit | 83bcb46ce98ba3ec07b2208a82b05116352ec602 (patch) | |
tree | 1a0e9736d60c2700bb9e5162e4061433c8c41641 /tv/5pkgs | |
parent | 9ed980f603c3afce53b577726a3f6af2a9bbed75 (diff) |
tv nix-prefetch-github: init at 3.0
Diffstat (limited to 'tv/5pkgs')
-rw-r--r-- | tv/5pkgs/override/default.nix | 3 | ||||
-rw-r--r-- | tv/5pkgs/override/nix-prefetch-github.nix | 47 |
2 files changed, 50 insertions, 0 deletions
diff --git a/tv/5pkgs/override/default.nix b/tv/5pkgs/override/default.nix index 789a3cfe8..d18d66506 100644 --- a/tv/5pkgs/override/default.nix +++ b/tv/5pkgs/override/default.nix @@ -10,6 +10,9 @@ self: super: { outputHashMode = null; }); + nix-prefetch-github = + self.python3Packages.callPackage ./nix-prefetch-github.nix {}; + rxvt_unicode = self.callPackage ./rxvt_unicode.nix { rxvt_unicode = super.rxvt_unicode; }; diff --git a/tv/5pkgs/override/nix-prefetch-github.nix b/tv/5pkgs/override/nix-prefetch-github.nix new file mode 100644 index 000000000..67873f929 --- /dev/null +++ b/tv/5pkgs/override/nix-prefetch-github.nix @@ -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 ]; + }; +} |