bepasty: move out of python-packages

because its a (web) application and thus doesn't belong there.
This commit is contained in:
Frederik Rietdijk 2017-08-25 17:51:18 +02:00
parent e0a23575d2
commit 997043c137
4 changed files with 37 additions and 28 deletions

View file

@ -3,7 +3,7 @@
with lib;
let
gunicorn = pkgs.pythonPackages.gunicorn;
bepasty = pkgs.pythonPackages.bepasty-server;
bepasty = pkgs.bepasty;
gevent = pkgs.pythonPackages.gevent;
python = pkgs.pythonPackages.python;
cfg = config.services.bepasty;

View file

@ -0,0 +1,34 @@
{ python
, lib
}:
with python.pkgs;
buildPythonPackage rec {
pname = "bepasty";
version = "0.4.0";
name = "${pname}-${version}";
propagatedBuildInputs = [
flask
pygments
xstatic
xstatic-bootbox
xstatic-bootstrap
xstatic-jquery
xstatic-jquery-file-upload
xstatic-jquery-ui
xstatic-pygments
];
src = fetchPypi {
inherit pname version;
sha256 = "0bs79pgrjlnkmjfyj2hllbx3rw757va5w2g2aghi9cydmsl7gyi4";
};
meta = {
homepage = http://github.com/bepasty/bepasty-server;
description = "Binary pastebin server";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.makefu ];
};
}

View file

@ -1228,6 +1228,8 @@ with pkgs;
pythonPackages = python2Packages;
};
bepasty = callPackage ../tools/misc/bepasty { };
bfg-repo-cleaner = gitAndTools.bfg-repo-cleaner;
bgs = callPackage ../tools/X11/bgs { };

View file

@ -27380,33 +27380,6 @@ EOF
};
};
bepasty-server = buildPythonPackage rec {
name = "bepasty-server-${version}";
version = "0.4.0";
propagatedBuildInputs = with self;[
flask
pygments
xstatic
xstatic-bootbox
xstatic-bootstrap
xstatic-jquery
xstatic-jquery-file-upload
xstatic-jquery-ui
xstatic-pygments
];
src = pkgs.fetchurl {
url = "mirror://pypi/b/bepasty/bepasty-${version}.tar.gz";
sha256 = "0bs79pgrjlnkmjfyj2hllbx3rw757va5w2g2aghi9cydmsl7gyi4";
};
meta = {
homepage = http://github.com/bepasty/bepasty-server;
description = "Binary pastebin server";
license = licenses.mit;
maintainers = [ maintainers.makefu ];
};
};
xgboost = buildPythonPackage rec {
name = "xgboost-${version}";