git.iko.soy/typeable/nixpkgs
on master help sign in
nix-prefetch-github: init -> 1.3
commitaca3198c70084beec4fcd5d49bd3f8ead0a0e10a authorSebastian Jordan <sebastian.jordan.mail@googlemail.com> dateFri 20 Apr 2018, 11:32 (9 years ago) parent101d1d1
3 files changed+46−10
pkgs/build-support/nix-prefetch-github/default.nix+30 pkgs/development/python-modules/effect/default.nix+14−10 pkgs/top-level/all-packages.nix+2
pkgs/build-support/nix-prefetch-github/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ python3
2+, fetchFromGitHub
3+, stdenv
4+}:
5+
6+python3.pkgs.buildPythonApplication rec {
7+ pname = "nix-prefetch-github";
8+ version = "1.3";
9+
10+ src = fetchFromGitHub {
11+ owner = "seppeljordan";
12+ repo = "nix-prefetch-github";
13+ rev = "${version}";
14+ sha256 = "1rinbv1q4q8m27ih6l81w1lsmwn6cz7q3iyjiycklywpi8684dh6";
15+ };
16+
17+ propagatedBuildInputs = with python3.pkgs; [
18+ attrs
19+ click
20+ effect
21+ jinja2
22+ requests
23+ ];
24+ meta = with stdenv.lib; {
25+ description = "Prefetch sources from github";
26+ homepage = https://github.com/seppeljordan/nix-prefetch-github;
27+ license = licenses.gpl3;
28+ maintainers = [ maintainers.seppeljordan ];
29+ };
30+}
pkgs/development/python-modules/effect/default.nix+14−10
@@ -1,28 +1,32 @@
11{ buildPythonPackage
22, fetchPypi
33, lib
4−, attrs
54, six
5+, attrs
6+, pytest
7+, testtools
68}:
7−let
9+buildPythonPackage rec {
10+ version = "0.11.0";
11+ pname = "effect";
812
9−version = "0.11.0";
10−pname = "effect";
11−
12−in
13−buildPythonPackage {
14− inherit version pname;
1513 src = fetchPypi {
1614 inherit pname version;
1715 sha256 = "1q75w4magkqd8ggabhhzzxmxakpdnn0vdg7ygj89zdc9yl7561q6";
1816 };
17+ checkInputs = [
18+ pytest
19+ testtools
20+ ];
1921 propagatedBuildInputs = [
2022 six
2123 attrs
2224 ];
23− doCheck = false;
25+ checkPhase = ''
26+ pytest .
27+ '';
2428 meta = with lib; {
25− description = "pure effects for Python";
29+ description = "Pure effects for Python";
2630 homepage = https://github.com/python-effect/effect;
2731 license = licenses.mit;
2832 };
pkgs/top-level/all-packages.nix+2
@@ -20838,6 +20838,8 @@ with pkgs;
2083820838
2083920839 nix-pin = callPackage ../tools/package-management/nix-pin { };
2084020840
20841+ nix-prefetch-github = callPackage ../build-support/nix-prefetch-github {};
20842+
2084120843 inherit (callPackages ../tools/package-management/nix-prefetch-scripts { })
2084220844 nix-prefetch-bzr
2084320845 nix-prefetch-cvs