forked from mirrors/nixpkgs
nix-prefetch-github: init -> 1.3
This commit is contained in:
parent
101d1d118d
commit
aca3198c70
pkgs
build-support/nix-prefetch-github
development/python-modules/effect
top-level
30
pkgs/build-support/nix-prefetch-github/default.nix
Normal file
30
pkgs/build-support/nix-prefetch-github/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,28 +1,32 @@
|
||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, lib
|
, lib
|
||||||
, attrs
|
|
||||||
, six
|
, six
|
||||||
|
, attrs
|
||||||
|
, pytest
|
||||||
|
, testtools
|
||||||
}:
|
}:
|
||||||
let
|
buildPythonPackage rec {
|
||||||
|
version = "0.11.0";
|
||||||
|
pname = "effect";
|
||||||
|
|
||||||
version = "0.11.0";
|
|
||||||
pname = "effect";
|
|
||||||
|
|
||||||
in
|
|
||||||
buildPythonPackage {
|
|
||||||
inherit version pname;
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1q75w4magkqd8ggabhhzzxmxakpdnn0vdg7ygj89zdc9yl7561q6";
|
sha256 = "1q75w4magkqd8ggabhhzzxmxakpdnn0vdg7ygj89zdc9yl7561q6";
|
||||||
};
|
};
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
testtools
|
||||||
|
];
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
six
|
six
|
||||||
attrs
|
attrs
|
||||||
];
|
];
|
||||||
doCheck = false;
|
checkPhase = ''
|
||||||
|
pytest .
|
||||||
|
'';
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "pure effects for Python";
|
description = "Pure effects for Python";
|
||||||
homepage = https://github.com/python-effect/effect;
|
homepage = https://github.com/python-effect/effect;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
};
|
};
|
||||||
|
|
|
@ -20838,6 +20838,8 @@ with pkgs;
|
||||||
|
|
||||||
nix-pin = callPackage ../tools/package-management/nix-pin { };
|
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 { })
|
inherit (callPackages ../tools/package-management/nix-prefetch-scripts { })
|
||||||
nix-prefetch-bzr
|
nix-prefetch-bzr
|
||||||
nix-prefetch-cvs
|
nix-prefetch-cvs
|
||||||
|
|
Loading…
Reference in a new issue