2023-05-25 18:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchPypi
|
2017-08-25 15:51:18 +00:00
|
|
|
}:
|
2018-04-01 16:33:10 +00: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
|
2023-05-11 08:42:47 +00:00
|
|
|
with python3.pkgs; buildPythonPackage rec {
|
2017-08-25 15:51:18 +00:00
|
|
|
pname = "bepasty";
|
2023-05-11 08:42:47 +00:00
|
|
|
version = "1.1.0";
|
2017-08-25 15:51:18 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
pygments
|
2019-10-15 18:52:44 +00:00
|
|
|
setuptools
|
2017-08-25 15:51:18 +00:00
|
|
|
xstatic
|
2023-05-11 08:42:47 +00:00
|
|
|
xstatic-asciinema-player
|
2017-08-25 15:51:18 +00:00
|
|
|
xstatic-bootbox
|
|
|
|
xstatic-bootstrap
|
2023-05-11 08:42:47 +00:00
|
|
|
xstatic-font-awesome
|
2017-08-25 15:51:18 +00:00
|
|
|
xstatic-jquery
|
|
|
|
xstatic-jquery-file-upload
|
|
|
|
xstatic-jquery-ui
|
|
|
|
xstatic-pygments
|
|
|
|
];
|
2018-10-15 22:46:55 +00:00
|
|
|
|
2021-06-03 10:09:11 +00:00
|
|
|
buildInputs = [ setuptools-scm ];
|
2018-10-15 22:46:55 +00:00
|
|
|
|
2017-08-25 15:51:18 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-05-11 08:42:47 +00:00
|
|
|
sha256 = "sha256-f5tRq48tCqjzOGq7Z2T2U1zwQN121N9ap+xPxHWZyvU=";
|
2017-08-25 15:51:18 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2017-12-21 11:11:55 +00:00
|
|
|
pytest
|
|
|
|
selenium
|
|
|
|
];
|
|
|
|
|
2020-03-12 10:20:11 +00:00
|
|
|
# No tests in sdist
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-08-25 15:51:18 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/bepasty/bepasty-server";
|
2017-08-25 15:51:18 +00:00
|
|
|
description = "Binary pastebin server";
|
2023-05-12 18:22:29 +00:00
|
|
|
license = lib.licenses.bsd2;
|
2023-05-11 08:42:47 +00:00
|
|
|
maintainers = with lib.maintainers; [ aither64 makefu ];
|
2017-08-25 15:51:18 +00:00
|
|
|
};
|
2018-06-06 20:07:04 +00:00
|
|
|
}
|