diff --git a/pkgs/development/python-modules/buildbot/default.nix b/pkgs/development/python-modules/buildbot/default.nix index 4e21b077b360..8fc7b62a63c1 100644 --- a/pkgs/development/python-modules/buildbot/default.nix +++ b/pkgs/development/python-modules/buildbot/default.nix @@ -1,9 +1,9 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, makeWrapper, isPy3k, +{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, makeWrapper, isPy3k, python, twisted, jinja2, zope_interface, future, sqlalchemy, sqlalchemy_migrate, dateutil, txaio, autobahn, pyjwt, pyyaml, treq, txrequests, pyjade, boto3, moto, mock, python-lz4, setuptoolsTrial, - isort, pylint, flake8, buildbot-worker, buildbot-pkg, parameterized, - git, glibcLocales }: + isort, pylint, flake8, buildbot-worker, buildbot-pkg, buildbot-plugins, + parameterized, git, openssh, glibcLocales }: let withPlugins = plugins: buildPythonPackage { @@ -29,7 +29,7 @@ let src = fetchPypi { inherit pname version; - sha256 = "e4e6b2861c4f29ed5d84ca497ca7053ae1cc9b9a5387389c457ff9f7e651bf19"; + sha256 = "06dza7kggybz8nf3i1skkadwrq9s0nkpqjfahifysaag3j3b5rp4"; }; propagatedBuildInputs = [ @@ -63,8 +63,10 @@ let flake8 buildbot-worker buildbot-pkg + buildbot-plugins.www parameterized git + openssh glibcLocales ]; @@ -72,6 +74,13 @@ let # This patch disables the test that tries to read /etc/os-release which # is not accessible in sandboxed builds. ./skip_test_linux_distro.patch + # Work around https://github.com/glyph/automat/issues/117 + (fetchpatch { + url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/buildbot-automat-117.diff?h=packages/buildbot&id=7904292340f98578adfe783a09e9eb4c5b1d4632"; + name = "buildbot-automat-117.diff"; + stripLen = 1; + sha256 = "0rng6f8nvghkihajz9m925rdp9q3c395bj4wc7r2s1minv613hba"; + }) ]; postPatch = '' @@ -93,7 +102,7 @@ let }; meta = with lib; { - homepage = http://buildbot.net/; + homepage = "https://buildbot.net/"; description = "Buildbot is an open-source continuous integration framework for automating software build, test, and release processes"; maintainers = with maintainers; [ nand0p ryansydnor lopsided98 ]; license = licenses.gpl2; diff --git a/pkgs/development/python-modules/buildbot/pkg.nix b/pkgs/development/python-modules/buildbot/pkg.nix index e1e5ac140bac..1a75d6a634fb 100644 --- a/pkgs/development/python-modules/buildbot/pkg.nix +++ b/pkgs/development/python-modules/buildbot/pkg.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ lib, buildPythonPackage, fetchPypi, isPy3k }: buildPythonPackage rec { pname = "buildbot-pkg"; @@ -6,7 +6,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "7c5b508c8c0d2fef5cdf4001c9f1e848f06fe8d6c30d8dff571a1a1fd251c9d7"; + sha256 = "1my9a791y6hsazzqs3f3svl6zw28x3qwj0a0vxffybqdij650nvw"; }; postPatch = '' @@ -15,8 +15,10 @@ buildPythonPackage rec { substituteInPlace buildbot_pkg.py --replace "os.listdir = listdir" "" ''; + disabled = !isPy3k; + meta = with lib; { - homepage = http://buildbot.net/; + homepage = "https://buildbot.net/"; description = "Buildbot Packaging Helper"; maintainers = with maintainers; [ nand0p ryansydnor lopsided98 ]; license = licenses.gpl2; diff --git a/pkgs/development/python-modules/buildbot/plugins.nix b/pkgs/development/python-modules/buildbot/plugins.nix index e0855bbcb3d9..7ee8ddfb61a9 100644 --- a/pkgs/development/python-modules/buildbot/plugins.nix +++ b/pkgs/development/python-modules/buildbot/plugins.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, buildbot, buildbot-pkg, mock }: +{ lib, buildPythonPackage, fetchPypi, buildbot-pkg, mock }: { www = buildPythonPackage rec { @@ -7,13 +7,23 @@ src = fetchPypi { inherit pname version; - sha256 = "0l4kyxh62y86cw97101gjs42n1sdw1n18cgh6mm337gzjn42nv3x"; + sha256 = "0awy96pb9s9g0nrmlrvqf5zi878z6mvj653inf9sm89x601a6lp1"; }; - buildInputs = [ buildbot buildbot-pkg mock ]; + # Remove unneccessary circular dependency on buildbot + postPatch = '' + sed -i setup.py \ + -e "/import buildbot/d" \ + -e "s/'buildbot',//" + ''; + + buildInputs = [ buildbot-pkg mock ]; + + # No tests + doCheck = false; meta = with lib; { - homepage = http://buildbot.net/; + homepage = "https://buildbot.net/"; description = "Buildbot UI"; maintainers = with maintainers; [ nand0p ryansydnor lopsided98 ]; license = licenses.gpl2; @@ -26,14 +36,16 @@ src = fetchPypi { inherit pname version; - sha256 = "1s0jl5b9zd7iwxqfb2g145nzf5nx6q44x4y1axkzilkd777162cz"; + sha256 = "0bp7bbq6rq1kdg3pf8plcpc4amam0pks5dlmyqj6bn29skfa5h1j"; }; buildInputs = [ buildbot-pkg ]; - checkInputs = [ buildbot ]; + + # No tests + doCheck = false; meta = with lib; { - homepage = http://buildbot.net/; + homepage = "https://buildbot.net/"; description = "Buildbot Console View Plugin"; maintainers = with maintainers; [ nand0p ryansydnor lopsided98 ]; license = licenses.gpl2; @@ -46,14 +58,16 @@ src = fetchPypi { inherit pname version; - sha256 = "0qld1424d4qvf08qz5ibl3pv0qzj0qxrvgra5dr3wagaq3jfh3kz"; + sha256 = "1mxxkqzh4a6574n2lk2ndi77d9g93hjpkwsqizj911n6ibsn4qw3"; }; buildInputs = [ buildbot-pkg ]; - checkInputs = [ buildbot ]; + + # No tests + doCheck = false; meta = with lib; { - homepage = http://buildbot.net/; + homepage = "https://buildbot.net/"; description = "Buildbot Waterfall View Plugin"; maintainers = with maintainers; [ nand0p ryansydnor lopsided98 ]; license = licenses.gpl2; @@ -66,14 +80,16 @@ src = fetchPypi { inherit pname version; - sha256 = "1di8w9dzalg3d2k3wff682irbi8dcksysc9n176zncmkbi2pr2ia"; + sha256 = "1fkrd5crbgqgp8mr8qgfy559f59ys6hrspddzk3fwg5hrsckkjwr"; }; buildInputs = [ buildbot-pkg ]; - checkInputs = [ buildbot ]; + + # No tests + doCheck = false; meta = with lib; { - homepage = http://buildbot.net/; + homepage = "https://buildbot.net/"; description = "Buildbot Grid View Plugin"; maintainers = with maintainers; [ nand0p lopsided98 ]; license = licenses.gpl2; @@ -86,14 +102,16 @@ src = fetchPypi { inherit pname version; - sha256 = "0gh6ddczlga75n6fh9pkbv39x8p3b6pqviaj287wab27wimd1hxa"; + sha256 = "0cvbizcc92df08xcs8w6ah51yfilxz7sx9g8bbdrvw6m586ziczb"; }; buildInputs = [ buildbot-pkg ]; - checkInputs = [ buildbot ]; + + # No tests + doCheck = false; meta = with lib; { - homepage = http://buildbot.net/; + homepage = "https://buildbot.net/"; description = "Buildbot WSGI dashboards Plugin"; maintainers = with maintainers; [ lopsided98 ]; license = licenses.gpl2; diff --git a/pkgs/development/python-modules/buildbot/worker.nix b/pkgs/development/python-modules/buildbot/worker.nix index 028a4009d222..19ce3bf0ad66 100644 --- a/pkgs/development/python-modules/buildbot/worker.nix +++ b/pkgs/development/python-modules/buildbot/worker.nix @@ -7,7 +7,7 @@ buildPythonPackage (rec { src = fetchPypi { inherit pname version; - sha256 = "8330cf314064516648e78d2685b2eaae14fc9481351eb229f1392b38bdc18815"; + sha256 = "05c8q6ykharry4lv47imh6agq55fxar8a9ldwx46clb480qwyc43"; }; propagatedBuildInputs = [ twisted future ]; @@ -20,7 +20,7 @@ buildPythonPackage (rec { ''; meta = with lib; { - homepage = http://buildbot.net/; + homepage = "https://buildbot.net/"; description = "Buildbot Worker Daemon"; maintainers = with maintainers; [ nand0p ryansydnor lopsided98 ]; license = licenses.gpl2;