tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
opendrop: cleanup, add openssl to PATH
P. R. d. O.
2 years ago
deb32e08
d888e30e
+32
-9
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
opendrop
default.nix
+32
-9
pkgs/tools/networking/opendrop/default.nix
···
1
{ lib
2
, buildPythonApplication
3
-
, fetchPypi
4
, fleep
0
5
, libarchive-c
6
, pillow
7
, requests-toolbelt
8
, setuptools
9
-
, zeroconf }:
0
0
0
10
11
buildPythonApplication rec {
12
pname = "opendrop";
13
version = "0.13.0";
0
14
15
-
src = fetchPypi {
16
-
inherit version pname;
17
-
sha256 = "sha256-FE1oGpL6C9iBhI8Zj71Pm9qkObJvSeU2gaBZwK1bTQc=";
0
0
18
};
19
0
0
0
0
0
20
propagatedBuildInputs = [
21
fleep
0
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;
0
0
0
0
0
0
0
0
33
34
meta = with lib; {
35
description = "An open Apple AirDrop implementation written in Python";
36
homepage = "https://owlink.org/";
0
37
license = licenses.gpl3Only;
38
maintainers = with maintainers; [ wolfangaukang ];
0
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
}