Merge pull request #39214 from seppeljordan/add-nix-prefetch-github
Add nix-prefetch-github
This commit is contained in:
commit
273c882f53
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 ];
|
||||||
|
};
|
||||||
|
}
|
33
pkgs/development/python-modules/effect/default.nix
Normal file
33
pkgs/development/python-modules/effect/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -20934,6 +20934,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
|
||||||
|
@ -5160,6 +5160,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
effect = callPackage ../development/python-modules/effect {};
|
||||||
|
|
||||||
elpy = buildPythonPackage rec {
|
elpy = buildPythonPackage rec {
|
||||||
name = "elpy-${version}";
|
name = "elpy-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user