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;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-6lJW1XNwKXeTTn0jDOIsVHUrmxSWc4iK3gINvTFX2XU=";
|
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;
|
|
|
|
};
|
|
|
|
}
|