git.iko.soy/typeable/nixpkgs
on master help sign in
zerobin: fix build
commitb91e7081da52a649f55cc36db478a5546375f9f1 authorFabian Affolter <mail@fabian-affolter.ch> dateTue 10 Aug 2021, 11:10 (5 years ago) parenta3faaa7
1 file changed+7
pkgs/applications/networking/zerobin/default.nix+7
pkgs/applications/networking/zerobin/default.nix+7
@@ -7,6 +7,7 @@
77python3Packages.buildPythonApplication rec {
88 pname = "zerobin";
99 version = "1.0.5";
10+
1011 src = fetchFromGitHub {
1112 owner = "Tygs";
1213 repo = "0bin";
@@ -21,6 +22,7 @@ python3Packages.buildPythonApplication rec {
2122 python3Packages.pyscss
2223 nodePackages.uglify-js
2324 ];
25+
2426 propagatedBuildInputs = with python3Packages; [
2527 appdirs
2628 beaker
@@ -30,16 +32,19 @@ python3Packages.buildPythonApplication rec {
3032 lockfile
3133 paste
3234 ];
35+
3336 prePatch = ''
3437 # replace /bin/bash in compress.sh
3538 patchShebangs .
3639
3740 # relax version constraints of some dependencies
3841 substituteInPlace setup.cfg \
42+ --replace "clize==4.1.1" "clize" \
3943 --replace "bleach==3.1.5" "bleach>=3.1.5,<4" \
4044 --replace "bottle==0.12.18" "bottle>=0.12.18,<1" \
4145 --replace "Paste==3.4.3" "Paste>=3.4.3,<4"
4246 '';
47+
4348 buildPhase = ''
4449 runHook preBuild
4550 doit build
@@ -51,6 +56,8 @@ python3Packages.buildPythonApplication rec {
5156 # See https://github.com/NixOS/nixpkgs/pull/98734#discussion_r495823510
5257 doCheck = false;
5358
59+ pythonImportsCheck = [ "zerobin" ];
60+
5461 meta = with lib; {
5562 description = "A client side encrypted pastebin";
5663 homepage = "https://0bin.net/";