diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-12 10:49:32 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-12 13:22:43 +0200 |
commit | b798cf6d60baf5aad5438ba5936259c64d87299c (patch) | |
tree | f2760f034be451c04301ea497f57e35c8da878ef /overlays/python-packages | |
parent | 7667c367033b15582cf383da62446f78e66a59ef (diff) | |
download | Nix-b798cf6d60baf5aad5438ba5936259c64d87299c.tar.gz Nix-b798cf6d60baf5aad5438ba5936259c64d87299c.tar.zst Nix-b798cf6d60baf5aad5438ba5936259c64d87299c.zip |
Move buildbot plugin buildslist to pkgs
Diffstat (limited to 'overlays/python-packages')
-rw-r--r-- | overlays/python-packages/apprise/apprise.json | 15 | ||||
-rw-r--r-- | overlays/python-packages/apprise/default.nix | 16 | ||||
-rw-r--r-- | overlays/python-packages/buildbot.nix | 8 | ||||
-rw-r--r-- | overlays/python-packages/default.nix | 28 | ||||
-rw-r--r-- | overlays/python-packages/wokkel/default.nix | 16 |
5 files changed, 34 insertions, 49 deletions
diff --git a/overlays/python-packages/apprise/apprise.json b/overlays/python-packages/apprise/apprise.json deleted file mode 100644 index b408ea4..0000000 --- a/overlays/python-packages/apprise/apprise.json +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | { | ||
2 | "tag": "c9b957c-master", | ||
3 | "meta": { | ||
4 | "name": "apprise", | ||
5 | "url": "https://github.com/caronc/apprise", | ||
6 | "branch": "master" | ||
7 | }, | ||
8 | "github": { | ||
9 | "owner": "caronc", | ||
10 | "repo": "apprise", | ||
11 | "rev": "c9b957c4341e7d43e5be6463bd317a7401d083d9", | ||
12 | "sha256": "01zz4mh3xvplrm5xalzrcncnh0jq5y51pmdxkr4hdd6dz9wx0mbg", | ||
13 | "fetchSubmodules": true | ||
14 | } | ||
15 | } | ||
diff --git a/overlays/python-packages/apprise/default.nix b/overlays/python-packages/apprise/default.nix deleted file mode 100644 index 99e04ad..0000000 --- a/overlays/python-packages/apprise/default.nix +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | self: super: { | ||
2 | python3 = super.python3.override { | ||
3 | packageOverrides = python-self: python-super: { | ||
4 | apprise = python-self.buildPythonPackage rec { | ||
5 | pname = "apprise"; | ||
6 | version = "0.7.4"; | ||
7 | src = (self.mylibs.fetchedGithub ./apprise.json).src; | ||
8 | propagatedBuildInputs = with python-self; [ decorator | ||
9 | requests requests_oauthlib oauthlib urllib3 six click | ||
10 | markdown pyyaml sleekxmpp | ||
11 | ]; | ||
12 | doChecks = false; | ||
13 | }; | ||
14 | }; | ||
15 | }; | ||
16 | } | ||
diff --git a/overlays/python-packages/buildbot.nix b/overlays/python-packages/buildbot.nix new file mode 100644 index 0000000..ccf2f6a --- /dev/null +++ b/overlays/python-packages/buildbot.nix | |||
@@ -0,0 +1,8 @@ | |||
1 | self: super: { | ||
2 | pythonOverrides = self.buildPythonOverrides (pyself: pysuper: { | ||
3 | buildbot-plugins = pysuper.buildbot-plugins // { | ||
4 | buildslist = self.python3PackagesPlus.buildbot-plugins.buildslist; | ||
5 | }; | ||
6 | buildbot-full = pysuper.buildbot-full.withPlugins [ pyself.buildbot-plugins.buildslist ]; | ||
7 | }) super.pythonOverrides; | ||
8 | } | ||
diff --git a/overlays/python-packages/default.nix b/overlays/python-packages/default.nix index 7313f9e..8a9949e 100644 --- a/overlays/python-packages/default.nix +++ b/overlays/python-packages/default.nix | |||
@@ -1,4 +1,28 @@ | |||
1 | let | ||
2 | fromMyPythonPackages = name: self: super: { | ||
3 | pythonOverrides = self.buildPythonOverrides (pyself: pysuper: { | ||
4 | "${name}" = self."${pyself.python.pname}PackagesPlus"."${name}"; | ||
5 | }) super.pythonOverrides; | ||
6 | }; | ||
7 | in | ||
1 | { | 8 | { |
2 | wokkel = import ./wokkel; | 9 | # https://github.com/NixOS/nixpkgs/issues/44426 |
3 | apprise = import ./apprise; | 10 | # needs to come before all other in alphabetical order (or make use of |
11 | # lib.mkBefore) | ||
12 | __pythonOverlayFix = self: super: let | ||
13 | pyNames = [ "python3" "python36" "python37" ]; | ||
14 | overriddenPython = name: [ | ||
15 | { inherit name; value = super.${name}.override { packageOverrides = self.pythonOverrides; }; } | ||
16 | { name = "${name}Packages"; value = self.recurseIntoAttrs self.${name}.pkgs; } | ||
17 | ]; | ||
18 | overriddenPythons = builtins.concatLists (map overriddenPython pyNames); | ||
19 | in { | ||
20 | pythonOverrides = pyself: pysuper: {}; | ||
21 | buildPythonOverrides = newOverrides: currentOverrides: super.lib.composeExtensions newOverrides currentOverrides; | ||
22 | } // super.lib.attrsets.listToAttrs overriddenPythons; | ||
23 | |||
24 | |||
25 | apprise = fromMyPythonPackages "apprise"; | ||
26 | buildbot = import ./buildbot.nix; | ||
27 | wokkel = fromMyPythonPackages "wokkel"; | ||
4 | } | 28 | } |
diff --git a/overlays/python-packages/wokkel/default.nix b/overlays/python-packages/wokkel/default.nix deleted file mode 100644 index 5d0ab4a..0000000 --- a/overlays/python-packages/wokkel/default.nix +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | self: super: { | ||
2 | python3 = super.python3.override { | ||
3 | packageOverrides = python-self: python-super: { | ||
4 | wokkel = python-self.buildPythonPackage rec { | ||
5 | pname = "wokkel"; | ||
6 | version = "18.0.0"; | ||
7 | src = python-self.fetchPypi { | ||
8 | inherit pname version; | ||
9 | sha256 = "1spq44gg8gsviqx1dvlmjpgfc0wk0jpyx4ap01y2pad1ai9cw016"; | ||
10 | }; | ||
11 | propagatedBuildInputs = with python-self; [ twisted.extras.tls twisted incremental dateutil ]; | ||
12 | doChecks = false; | ||
13 | }; | ||
14 | }; | ||
15 | }; | ||
16 | } | ||