Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
buildPythonPackage,
|
|
git,
|
|
which,
|
|
pythonOlder,
|
|
unittestCheckHook,
|
|
sphinxHook,
|
|
sphinx-argparse,
|
|
parameterized,
|
|
setuptools,
|
|
nix,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nix-prefetch-github";
|
|
version = "7.1.0";
|
|
pyproject = true;
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "seppeljordan";
|
|
repo = "nix-prefetch-github";
|
|
rev = "v${version}";
|
|
hash = "sha256-eQd/MNlnuzXzgFzvwUMchvHoIvkIrbpGKV7iknO14Cc=";
|
|
};
|
|
|
|
dependencies = [ nix ];
|
|
|
|
nativeBuildInputs = [
|
|
sphinxHook
|
|
sphinx-argparse
|
|
setuptools
|
|
];
|
|
nativeCheckInputs = [
|
|
unittestCheckHook
|
|
git
|
|
which
|
|
parameterized
|
|
];
|
|
|
|
sphinxBuilders = [ "man" ];
|
|
sphinxRoot = "docs";
|
|
|
|
# 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 ];
|
|
};
|
|
}
|