3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support/nix-prefetch-github/default.nix

31 lines
661 B
Nix
Raw Normal View History

2018-04-20 10:32:29 +01:00
{ python3
, fetchFromGitHub
, stdenv
}:
python3.pkgs.buildPythonApplication rec {
pname = "nix-prefetch-github";
2019-02-24 13:51:25 +00:00
version = "2.1";
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-24 13:51:25 +00:00
sha256 = "1v4w7xs8wxgl36vb2cnyj219mqvximkvvw46h4fp25vi2g3f9h8d";
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 ];
};
}