2020-12-07 22:05:06 +00:00
|
|
|
{ fetchFromGitHub
|
2019-10-26 21:36:08 +00:00
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, attrs
|
|
|
|
, click
|
|
|
|
, effect
|
2020-06-08 20:22:10 +00:00
|
|
|
, git
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytestcov
|
2020-12-07 22:05:06 +00:00
|
|
|
, pythonOlder
|
2019-10-26 21:36:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nix-prefetch-github";
|
2020-12-07 22:05:06 +00:00
|
|
|
version = "4.0.3";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-10-26 21:36:08 +00:00
|
|
|
|
2020-12-07 22:05:06 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seppeljordan";
|
|
|
|
repo = "nix-prefetch-github";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "CLcmwobPrL6NiI/nw+/Dwho/r15owV16Jmt5OcfFqvo=";
|
2019-10-26 21:36:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
click
|
|
|
|
effect
|
|
|
|
];
|
|
|
|
|
2020-12-07 22:05:06 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytestcov git ];
|
2020-06-08 20:22:10 +00:00
|
|
|
|
|
|
|
# ignore tests which are impure
|
2020-12-07 22:05:06 +00:00
|
|
|
disabledTests = [ "network" "requires_nix_build" ];
|
2020-06-08 20:22:10 +00:00
|
|
|
|
2019-10-26 21:36:08 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Prefetch sources from github";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/seppeljordan/nix-prefetch-github";
|
2019-10-26 21:36:08 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ seppeljordan ];
|
|
|
|
};
|
|
|
|
}
|