a19cd4ffb1
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
58 lines
1.0 KiB
Nix
58 lines
1.0 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 ];
|
|
};
|
|
}
|