2020-06-18 07:06:33 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, buildbot }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "buildbot-pkg";
|
2020-06-18 07:06:33 +00:00
|
|
|
inherit (buildbot) version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "sha256-PVmDJN3/PMsvZrrwSNaUUQLPkOMWO6edIEEfZSwspTs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Their listdir function filters out `node_modules` folders.
|
|
|
|
# Do we have to care about that with Nix...?
|
|
|
|
substituteInPlace buildbot_pkg.py --replace "os.listdir = listdir" ""
|
|
|
|
'';
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "buildbot_pkg" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://buildbot.net/";
|
|
|
|
description = "Buildbot Packaging Helper";
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ ryansydnor lopsided98 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|