about summary refs log tree commit diff
path: root/pkgs/applications/networking/zerobin
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-08-10 11:10:41 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-08-10 11:10:41 +0200
commitb91e7081da52a649f55cc36db478a5546375f9f1 (patch)
treef2cbdfbad67b1e35df001c761db7f7335e86eeaa /pkgs/applications/networking/zerobin
parenta3faaa753e4112dbaa4f0bdb0a59ff52f71e041d (diff)
zerobin: fix build
Diffstat (limited to 'pkgs/applications/networking/zerobin')
-rw-r--r--pkgs/applications/networking/zerobin/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/networking/zerobin/default.nix b/pkgs/applications/networking/zerobin/default.nix
index b86fe7cc6410f..16a52d6704501 100644
--- a/pkgs/applications/networking/zerobin/default.nix
+++ b/pkgs/applications/networking/zerobin/default.nix
@@ -7,6 +7,7 @@
 python3Packages.buildPythonApplication rec {
   pname = "zerobin";
   version = "1.0.5";
+
   src = fetchFromGitHub {
     owner = "Tygs";
     repo = "0bin";
@@ -21,6 +22,7 @@ python3Packages.buildPythonApplication rec {
     python3Packages.pyscss
     nodePackages.uglify-js
   ];
+
   propagatedBuildInputs = with python3Packages; [
     appdirs
     beaker
@@ -30,16 +32,19 @@ python3Packages.buildPythonApplication rec {
     lockfile
     paste
   ];
+
   prePatch = ''
     # replace /bin/bash in compress.sh
     patchShebangs .
 
     # relax version constraints of some dependencies
     substituteInPlace setup.cfg \
+      --replace "clize==4.1.1" "clize" \
       --replace "bleach==3.1.5" "bleach>=3.1.5,<4" \
       --replace "bottle==0.12.18" "bottle>=0.12.18,<1" \
       --replace "Paste==3.4.3" "Paste>=3.4.3,<4"
   '';
+
   buildPhase = ''
     runHook preBuild
     doit build
@@ -51,6 +56,8 @@ python3Packages.buildPythonApplication rec {
   # See https://github.com/NixOS/nixpkgs/pull/98734#discussion_r495823510
   doCheck = false;
 
+  pythonImportsCheck = [ "zerobin" ];
+
   meta = with lib; {
     description = "A client side encrypted pastebin";
     homepage = "https://0bin.net/";