stockholm/krebs/5pkgs/simple/buildbot-classic/default.nix

35 lines
927 B
Nix
Raw Normal View History

2021-06-09 20:20:33 +00:00
{ pkgs, fetchFromGitHub, python2Packages, git, ... }: let
2021-06-09 20:20:33 +00:00
# we need the old sqlparse since the new one is python2 incompatible
sqlparse = python2Packages.callPackage ./sqlparse.nix {};
in python2Packages.buildPythonApplication rec {
2017-08-05 12:08:51 +00:00
name = "buildbot-classic-${version}";
2018-09-24 07:05:53 +00:00
version = "0.8.18";
namePrefix = "";
patches = [];
src = fetchFromGitHub {
2018-06-12 16:43:12 +00:00
owner = "krebs";
repo = "buildbot-classic";
2018-03-29 09:15:13 +00:00
rev = version;
2018-09-24 07:05:53 +00:00
sha256 = "0b4y3n9zd2gdy8xwk1vpvs4n9fbg72vi8mx4ydgijwngcmdqkjmq";
};
postUnpack = "sourceRoot=\${sourceRoot}/master";
propagatedBuildInputs = [
python2Packages.jinja2
python2Packages.twisted
python2Packages.dateutil
2021-06-09 20:20:33 +00:00
(python2Packages.sqlalchemy_migrate.override { sqlparse = sqlparse; })
python2Packages.pysqlite
pkgs.coreutils
];
doCheck = false;
postInstall = ''
mkdir -p "$out/share/man/man1"
cp docs/buildbot.1 "$out/share/man/man1"
'';
}