depot/third_party/nixpkgs/pkgs/development/python-modules/nix-prefetch-github/default.nix
Default email dae973cb59 Project import generated by Copybara.
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
2023-03-08 18:32:21 +02:00

34 lines
761 B
Nix

{ fetchFromGitHub
, lib
, buildPythonPackage
, git
, which
, pythonOlder
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "nix-prefetch-github";
version = "6.0.1";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "seppeljordan";
repo = "nix-prefetch-github";
rev = "v${version}";
sha256 = "tvoDSqg4g517c1w0VcsVm3r4mBFG3RHaOTAJAv1ooc4=";
};
nativeCheckInputs = [ unittestCheckHook git which ];
# ignore tests which are impure
DISABLED_TESTS = "network requires_nix_build";
meta = with lib; {
description = "Prefetch sources from github";
homepage = "https://github.com/seppeljordan/nix-prefetch-github";
license = licenses.gpl3;
maintainers = with maintainers; [ seppeljordan ];
};
}