depot/third_party/nixpkgs/pkgs/development/python-modules/nix-prefetch-github/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

36 lines
773 B
Nix

{ fetchFromGitHub
, lib
, buildPythonPackage
, git
, which
, pythonOlder
}:
buildPythonPackage rec {
pname = "nix-prefetch-github";
version = "5.2.1";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "seppeljordan";
repo = "nix-prefetch-github";
rev = "v${version}";
sha256 = "etmlRavPzJKLmyw3PYMgeMveFj4aVi38crHjdtDuaLg=";
};
checkInputs = [ git which ];
checkPhase = ''
python -m unittest discover
'';
# 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 ];
};
}