Files
nixpkgs/pkgs/by-name/op/opendrop/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.1 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
writableTmpDirAsHomeHook,
openssl,
}:
python3Packages.buildPythonApplication rec {
pname = "opendrop";
version = "0.13.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "seemoo-lab";
repo = "opendrop";
tag = "v${version}";
hash = "sha256-4FeVQO7Z6t9mjIgesdjKx4Mi+Ro5EVGJpEFjCvB2SlA=";
};
nativeBuildInputs = [
# Tests fail if I put it on buildInputs
openssl
];
dependencies = with python3Packages; [
fleep
ifaddr
libarchive-c
pillow
requests-toolbelt
setuptools
zeroconf
];
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath nativeBuildInputs}"
];
checkInputs = with python3Packages; [
pytestCheckHook
];
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
meta = {
description = "Open Apple AirDrop implementation written in Python";
homepage = "https://owlink.org/";
changelog = "https://github.com/seemoo-lab/opendrop/releases/tag/${src.rev}";
license = lib.licenses.gpl3Only;
maintainers = [ ];
mainProgram = "opendrop";
platforms = [ "x86_64-linux" ];
};
}