2020-12-09 12:39:15 +00:00
|
|
|
{ fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, attrs
|
|
|
|
, click
|
|
|
|
, effect
|
2020-06-15 15:56:04 +00:00
|
|
|
, git
|
|
|
|
, pytestCheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-12-09 12:39:15 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nix-prefetch-github";
|
2021-07-17 21:14:59 +00:00
|
|
|
version = "4.0.4";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seppeljordan";
|
|
|
|
repo = "nix-prefetch-github";
|
|
|
|
rev = "v${version}";
|
2021-07-17 21:14:59 +00:00
|
|
|
sha256 = "g5G818Gq5EGyRIyg/ZW7guxMS0IyJ4nYaRjG/CtGhuc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
click
|
|
|
|
effect
|
|
|
|
];
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-cov git ];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
# ignore tests which are impure
|
2020-12-09 12:39:15 +00:00
|
|
|
disabledTests = [ "network" "requires_nix_build" ];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Prefetch sources from github";
|
|
|
|
homepage = "https://github.com/seppeljordan/nix-prefetch-github";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ seppeljordan ];
|
|
|
|
};
|
|
|
|
}
|