Merge pull request #268565 from WolfangAukang/opendrop-openssl

opendrop: cleanup, add openssl to PATH

authored by Rick van Schijndel and committed by GitHub 08b4f838 a4032901

+32 -9
+32 -9
pkgs/tools/networking/opendrop/default.nix
··· 1 { lib 2 , buildPythonApplication 3 - , fetchPypi 4 , fleep 5 , libarchive-c 6 , pillow 7 , requests-toolbelt 8 , setuptools 9 - , zeroconf }: 10 11 buildPythonApplication rec { 12 pname = "opendrop"; 13 version = "0.13.0"; 14 15 - src = fetchPypi { 16 - inherit version pname; 17 - sha256 = "sha256-FE1oGpL6C9iBhI8Zj71Pm9qkObJvSeU2gaBZwK1bTQc="; 18 }; 19 20 propagatedBuildInputs = [ 21 fleep 22 libarchive-c 23 pillow 24 requests-toolbelt ··· 26 zeroconf 27 ]; 28 29 - # There are tests, but getting the following error: 30 - # nix_run_setup: error: argument action: invalid choice: 'test' (choose from 'receive', 'find', 'send') 31 - # Opendrop works as intended though 32 - doCheck = false; 33 34 meta = with lib; { 35 description = "An open Apple AirDrop implementation written in Python"; 36 homepage = "https://owlink.org/"; 37 license = licenses.gpl3Only; 38 maintainers = with maintainers; [ wolfangaukang ]; 39 platforms = [ "x86_64-linux" ]; 40 }; 41 }
··· 1 { lib 2 , buildPythonApplication 3 + , fetchFromGitHub 4 , fleep 5 + , ifaddr 6 , libarchive-c 7 , pillow 8 , requests-toolbelt 9 , setuptools 10 + , zeroconf 11 + , pytestCheckHook 12 + , openssl 13 + }: 14 15 buildPythonApplication rec { 16 pname = "opendrop"; 17 version = "0.13.0"; 18 + format = "setuptools"; 19 20 + src = fetchFromGitHub { 21 + owner = "seemoo-lab"; 22 + repo = "opendrop"; 23 + rev = "v${version}"; 24 + hash = "sha256-4FeVQO7Z6t9mjIgesdjKx4Mi+Ro5EVGJpEFjCvB2SlA="; 25 }; 26 27 + nativeBuildInputs = [ 28 + # Tests fail if I put it on buildInputs 29 + openssl 30 + ]; 31 + 32 propagatedBuildInputs = [ 33 fleep 34 + ifaddr 35 libarchive-c 36 pillow 37 requests-toolbelt ··· 39 zeroconf 40 ]; 41 42 + makeWrapperArgs = [ 43 + "--prefix PATH : ${lib.makeBinPath nativeBuildInputs}" 44 + ]; 45 + 46 + checkInputs = [ 47 + pytestCheckHook 48 + ]; 49 + 50 + preCheck = '' 51 + # Solves PermissionError: [Errno 13] Permission denied: '/homeless-shelter' 52 + export HOME=$(mktemp -d) 53 + ''; 54 55 meta = with lib; { 56 description = "An open Apple AirDrop implementation written in Python"; 57 homepage = "https://owlink.org/"; 58 + changelog = "https://github.com/seemoo-lab/opendrop/releases/tag/${src.rev}"; 59 license = licenses.gpl3Only; 60 maintainers = with maintainers; [ wolfangaukang ]; 61 + mainProgram = "opendrop"; 62 platforms = [ "x86_64-linux" ]; 63 }; 64 }