2020-12-09 12:39:15 +00:00
|
|
|
{ fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
2020-06-15 15:56:04 +00:00
|
|
|
, git
|
2022-04-27 09:35:20 +00:00
|
|
|
, which
|
2020-12-09 12:39:15 +00:00
|
|
|
, pythonOlder
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2024-02-29 20:09:43 +00:00
|
|
|
, sphinxHook
|
|
|
|
, sphinx-argparse
|
|
|
|
, parameterized
|
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nix-prefetch-github";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "7.1.0";
|
|
|
|
pyproject = true;
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
disabled = pythonOlder "3.9";
|
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}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-eQd/MNlnuzXzgFzvwUMchvHoIvkIrbpGKV7iknO14Cc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [ sphinxHook sphinx-argparse setuptools ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook git which parameterized ];
|
|
|
|
|
|
|
|
sphinxBuilders = [ "man" ];
|
|
|
|
sphinxRoot = "docs";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
# ignore tests which are impure
|
2022-01-03 16:56:52 +00:00
|
|
|
DISABLED_TESTS = "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 ];
|
|
|
|
};
|
|
|
|
}
|