7 # bepasty 1.2 needs xstatic-font-awesome < 5, see
8 # https://github.com/bepasty/bepasty-server/issues/305
9 bepastyPython = python3.override {
11 packageOverrides = self: super: {
12 xstatic-font-awesome = super.xstatic-font-awesome.overridePythonAttrs(oldAttrs: rec {
14 src = oldAttrs.src.override {
16 hash = "sha256-4B+0gMqqfHlj3LMyikcA5jG+9gcNsOi2hYFtIg5oX2w=";
23 # We need to use buildPythonPackage here to get the PYTHONPATH build correctly.
24 # This is needed for services.bepasty
25 # https://github.com/NixOS/nixpkgs/pull/38300
27 bepastyPython.pkgs.buildPythonPackage rec {
32 propagatedBuildInputs = with bepastyPython.pkgs; [
38 xstatic-asciinema-player
43 xstatic-jquery-file-upload
48 buildInputs = with bepastyPython.pkgs; [ setuptools-scm ];
51 inherit pname version;
52 hash = "sha256-08cyr2AruGAfHAwHHS8WMfJh7DBKymaYyz4AxI/ubkE=";
55 nativeCheckInputs = with bepastyPython.pkgs; [
67 # Can be enabled when werkzeug is updated to >2.2, see #245145
68 # and https://github.com/bepasty/bepasty-server/pull/303
69 "src/bepasty/tests/test_rest_server.py"
71 # These require a web browser
72 "src/bepasty/tests/screenshots.py"
73 "src/bepasty/tests/test_website.py"
77 homepage = "https://github.com/bepasty/bepasty-server";
78 description = "Binary pastebin server";
79 license = licenses.bsd2;
80 maintainers = with maintainers; [ aither64 makefu ];