2018-04-20 10:32:29 +01:00
|
|
|
{ python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "nix-prefetch-github";
|
2019-02-28 21:02:54 +00:00
|
|
|
version = "2.2";
|
2018-04-20 10:32:29 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seppeljordan";
|
|
|
|
repo = "nix-prefetch-github";
|
2019-02-21 21:56:22 +00:00
|
|
|
rev = "v${version}";
|
2019-02-28 21:02:54 +00:00
|
|
|
sha256 = "1m1d1fzacvwprfvhxih1hzr1m0y1jjxiznf8p8b3bi5a41yzvrrl";
|
2018-04-20 10:32:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
attrs
|
|
|
|
click
|
|
|
|
effect
|
|
|
|
jinja2
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Prefetch sources from github";
|
|
|
|
homepage = https://github.com/seppeljordan/nix-prefetch-github;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.seppeljordan ];
|
|
|
|
};
|
|
|
|
}
|