depot/third_party/nixpkgs/pkgs/development/python-modules/nix-prefetch-github/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

57 lines
1 KiB
Nix

{
fetchFromGitHub,
lib,
buildPythonPackage,
git,
which,
pythonOlder,
unittestCheckHook,
sphinxHook,
sphinx-argparse,
parameterized,
setuptools,
}:
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=";
};
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 ];
};
}