summary refs log tree commit diff
path: root/pkgs/tools/networking/opendrop/default.nix
blob: 6a8937215105705c3b9726a46baa0cf32b77031b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonApplication
, fetchPypi
, fleep
, libarchive-c
, pillow
, requests-toolbelt
, setuptools
, zeroconf }:

buildPythonApplication rec {
  pname = "opendrop";
  version = "0.13.0";

  src = fetchPypi {
    inherit version pname;
    sha256 = "sha256-FE1oGpL6C9iBhI8Zj71Pm9qkObJvSeU2gaBZwK1bTQc=";
  };

  propagatedBuildInputs = [
    fleep
    libarchive-c
    pillow
    requests-toolbelt
    setuptools
    zeroconf
  ];

  # There are tests, but getting the following error:
  # nix_run_setup: error: argument action: invalid choice: 'test' (choose from 'receive', 'find', 'send')
  # Opendrop works as intended though
  doCheck = false;

  meta = with lib; {
    description = "An open Apple AirDrop implementation written in Python";
    homepage = "https://owlink.org/";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ wolfangaukang ];
    platforms = [ "x86_64-linux" ];
  };
}