2020-03-12 11:20:11 +01:00
|
|
|
{ python3
|
2017-08-25 17:51:18 +02:00
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
2020-03-12 11:20:11 +01:00
|
|
|
let
|
|
|
|
python = python3.override {
|
|
|
|
self = python;
|
|
|
|
packageOverrides = self: super : {
|
|
|
|
xstatic-bootstrap = super.xstatic-bootstrap.overridePythonAttrs(oldAttrs: rec {
|
|
|
|
version = "3.3.7.1";
|
|
|
|
src = oldAttrs.src.override {
|
|
|
|
inherit version;
|
|
|
|
sha256 = "0cgihyjb9rg6r2ddpzbjm31y0901vyc8m9h3v0zrhxydx1w9x50c";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
2017-08-25 17:51:18 +02:00
|
|
|
|
2018-04-01 18:33:10 +02:00
|
|
|
#We need to use buildPythonPackage here to get the PYTHONPATH build correctly.
|
|
|
|
#This is needed for services.bepasty
|
|
|
|
#https://github.com/NixOS/nixpkgs/pull/38300
|
2020-03-12 11:20:11 +01:00
|
|
|
in with python.pkgs; buildPythonPackage rec {
|
2017-08-25 17:51:18 +02:00
|
|
|
pname = "bepasty";
|
2018-10-16 00:46:55 +02:00
|
|
|
version = "0.5.0";
|
2017-08-25 17:51:18 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
pygments
|
2019-10-15 20:52:44 +02:00
|
|
|
setuptools
|
2017-08-25 17:51:18 +02:00
|
|
|
xstatic
|
|
|
|
xstatic-bootbox
|
|
|
|
xstatic-bootstrap
|
|
|
|
xstatic-jquery
|
|
|
|
xstatic-jquery-file-upload
|
|
|
|
xstatic-jquery-ui
|
|
|
|
xstatic-pygments
|
|
|
|
];
|
2018-10-16 00:46:55 +02:00
|
|
|
|
2021-06-03 12:09:11 +02:00
|
|
|
buildInputs = [ setuptools-scm ];
|
2018-10-16 00:46:55 +02:00
|
|
|
|
2017-08-25 17:51:18 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-16 00:46:55 +02:00
|
|
|
sha256 = "1y3smw9620w2ia4zfsl2svb9j7mkfgc8z1bzjffyk1w5vryhwikh";
|
2017-08-25 17:51:18 +02:00
|
|
|
};
|
|
|
|
|
2017-12-21 12:11:55 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
selenium
|
|
|
|
];
|
|
|
|
|
2020-03-12 11:20:11 +01:00
|
|
|
# No tests in sdist
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-08-25 17:51:18 +02:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/bepasty/bepasty-server";
|
2017-08-25 17:51:18 +02:00
|
|
|
description = "Binary pastebin server";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.makefu ];
|
|
|
|
};
|
2018-06-06 22:07:04 +02:00
|
|
|
}
|