6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
34 lines
755 B
Nix
34 lines
755 B
Nix
{ fetchFromGitHub
|
|
, lib
|
|
, buildPythonPackage
|
|
, git
|
|
, which
|
|
, pythonOlder
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nix-prefetch-github";
|
|
version = "6.0.0";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "seppeljordan";
|
|
repo = "nix-prefetch-github";
|
|
rev = "v${version}";
|
|
sha256 = "YobBihNPbqYYWhe3x0p+BIlEK8R62s/dDFWUzP7fCTI=";
|
|
};
|
|
|
|
checkInputs = [ 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 ];
|
|
};
|
|
}
|