croc: 10.1.1 -> 10.1.3 (#364662)
[NixPkgs.git] / pkgs / tools / networking / opendrop / default.nix
blob704ee944b68562d4788f12965d565536feedb4af
2   lib,
3   buildPythonApplication,
4   fetchFromGitHub,
5   fleep,
6   ifaddr,
7   libarchive-c,
8   pillow,
9   requests-toolbelt,
10   setuptools,
11   zeroconf,
12   pytestCheckHook,
13   openssl,
16 buildPythonApplication rec {
17   pname = "opendrop";
18   version = "0.13.0";
19   format = "setuptools";
21   src = fetchFromGitHub {
22     owner = "seemoo-lab";
23     repo = "opendrop";
24     rev = "v${version}";
25     hash = "sha256-4FeVQO7Z6t9mjIgesdjKx4Mi+Ro5EVGJpEFjCvB2SlA=";
26   };
28   nativeBuildInputs = [
29     # Tests fail if I put it on buildInputs
30     openssl
31   ];
33   propagatedBuildInputs = [
34     fleep
35     ifaddr
36     libarchive-c
37     pillow
38     requests-toolbelt
39     setuptools
40     zeroconf
41   ];
43   makeWrapperArgs = [
44     "--prefix PATH : ${lib.makeBinPath nativeBuildInputs}"
45   ];
47   checkInputs = [
48     pytestCheckHook
49   ];
51   preCheck = ''
52     # Solves PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
53     export HOME=$(mktemp -d)
54   '';
56   meta = with lib; {
57     description = "Open Apple AirDrop implementation written in Python";
58     homepage = "https://owlink.org/";
59     changelog = "https://github.com/seemoo-lab/opendrop/releases/tag/${src.rev}";
60     license = licenses.gpl3Only;
61     maintainers = [ ];
62     mainProgram = "opendrop";
63     platforms = [ "x86_64-linux" ];
64   };