forked from mirrors/nixpkgs
49b20e5569
Some changes to be more idiomatic and use stdenv building blocks more. I also added a `buildbot.withPlugins` instead of the current plugins mechanism, which forces an unnecessary rebuild of the package and reruns all the tests. This should be equivalent and more pleasant to use in practice.
27 lines
758 B
Nix
27 lines
758 B
Nix
{ stdenv, pythonPackages }:
|
|
|
|
pythonPackages.buildPythonApplication (rec {
|
|
name = "${pname}-${version}";
|
|
pname = "buildbot-worker";
|
|
version = "0.9.4";
|
|
|
|
src = pythonPackages.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0rdrr8x7sn2nxl51p6h9ad42s3c28lb6sys84zrg0d7fm4zhv7hj";
|
|
};
|
|
|
|
buildInputs = with pythonPackages; [ setuptoolsTrial mock ];
|
|
propagatedBuildInputs = with pythonPackages; [ twisted future ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace buildbot_worker/scripts/logwatcher.py --replace '/usr/bin/tail' "$(type -P tail)"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://buildbot.net/;
|
|
description = "Buildbot Worker Daemon";
|
|
maintainers = with maintainers; [ nand0p ryansydnor ];
|
|
license = licenses.gpl2;
|
|
};
|
|
})
|