2018-04-20 11:32:29 +02:00
|
|
|
{ python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "nix-prefetch-github";
|
2019-02-28 22:02:54 +01:00
|
|
|
version = "2.2";
|
2018-04-20 11:32:29 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "seppeljordan";
|
|
|
|
repo = "nix-prefetch-github";
|
2019-02-21 22:56:22 +01:00
|
|
|
rev = "v${version}";
|
2019-02-28 22:02:54 +01:00
|
|
|
sha256 = "1m1d1fzacvwprfvhxih1hzr1m0y1jjxiznf8p8b3bi5a41yzvrrl";
|
2018-04-20 11:32:29 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|