Merge pull request #39214 from seppeljordan/add-nix-prefetch-github

Add nix-prefetch-github
This commit is contained in:
Jörg Thalheim 2018-05-23 16:33:03 +01:00 committed by GitHub
commit 273c882f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ python3
, fetchFromGitHub
, stdenv
}:
python3.pkgs.buildPythonApplication rec {
pname = "nix-prefetch-github";
version = "1.3";
src = fetchFromGitHub {
owner = "seppeljordan";
repo = "nix-prefetch-github";
rev = "${version}";
sha256 = "1rinbv1q4q8m27ih6l81w1lsmwn6cz7q3iyjiycklywpi8684dh6";
};
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 ];
};
}

View File

@ -0,0 +1,33 @@
{ buildPythonPackage
, fetchPypi
, lib
, six
, attrs
, pytest
, testtools
}:
buildPythonPackage rec {
version = "0.11.0";
pname = "effect";
src = fetchPypi {
inherit pname version;
sha256 = "1q75w4magkqd8ggabhhzzxmxakpdnn0vdg7ygj89zdc9yl7561q6";
};
checkInputs = [
pytest
testtools
];
propagatedBuildInputs = [
six
attrs
];
checkPhase = ''
pytest .
'';
meta = with lib; {
description = "Pure effects for Python";
homepage = https://github.com/python-effect/effect;
license = licenses.mit;
};
}

View File

@ -20934,6 +20934,8 @@ with pkgs;
nix-pin = callPackage ../tools/package-management/nix-pin { };
nix-prefetch-github = callPackage ../build-support/nix-prefetch-github {};
inherit (callPackages ../tools/package-management/nix-prefetch-scripts { })
nix-prefetch-bzr
nix-prefetch-cvs

View File

@ -5160,6 +5160,7 @@ in {
};
};
effect = callPackage ../development/python-modules/effect {};
elpy = buildPythonPackage rec {
name = "elpy-${version}";