22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
36 lines
773 B
Nix
36 lines
773 B
Nix
{ fetchFromGitHub
|
|
, lib
|
|
, buildPythonPackage
|
|
, git
|
|
, which
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nix-prefetch-github";
|
|
version = "5.1.2";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "seppeljordan";
|
|
repo = "nix-prefetch-github";
|
|
rev = "v${version}";
|
|
sha256 = "GHUH3Oog800qrdgXs5AEa4O6ovZ1LT0k3P4YwEHfwlY=";
|
|
};
|
|
|
|
checkInputs = [ git which ];
|
|
|
|
checkPhase = ''
|
|
python -m unittest discover
|
|
'';
|
|
# 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 ];
|
|
};
|
|
}
|