opendrop: migrate package definitions

This commit is contained in:
Guy Chronister 2025-07-19 11:12:21 -05:00
parent 24320d9a7a
commit 4a85363afd

View File

@ -1,20 +1,12 @@
{ {
lib, lib,
buildPythonApplication, python3Packages,
fetchFromGitHub, fetchFromGitHub,
fleep,
ifaddr,
libarchive-c,
pillow,
requests-toolbelt,
setuptools,
zeroconf,
pytestCheckHook,
writableTmpDirAsHomeHook, writableTmpDirAsHomeHook,
openssl, openssl,
}: }:
buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "opendrop"; pname = "opendrop";
version = "0.13.0"; version = "0.13.0";
format = "setuptools"; format = "setuptools";
@ -22,7 +14,7 @@ buildPythonApplication rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "seemoo-lab"; owner = "seemoo-lab";
repo = "opendrop"; repo = "opendrop";
rev = "v${version}"; tag = "v${version}";
hash = "sha256-4FeVQO7Z6t9mjIgesdjKx4Mi+Ro5EVGJpEFjCvB2SlA="; hash = "sha256-4FeVQO7Z6t9mjIgesdjKx4Mi+Ro5EVGJpEFjCvB2SlA=";
}; };
@ -31,7 +23,7 @@ buildPythonApplication rec {
openssl openssl
]; ];
propagatedBuildInputs = [ dependencies = with python3Packages; [
fleep fleep
ifaddr ifaddr
libarchive-c libarchive-c
@ -45,18 +37,18 @@ buildPythonApplication rec {
"--prefix PATH : ${lib.makeBinPath nativeBuildInputs}" "--prefix PATH : ${lib.makeBinPath nativeBuildInputs}"
]; ];
checkInputs = [ checkInputs = with python3Packages; [
pytestCheckHook pytestCheckHook
]; ];
nativeCheckInputs = [ writableTmpDirAsHomeHook ]; nativeCheckInputs = [ writableTmpDirAsHomeHook ];
meta = with lib; { meta = {
description = "Open Apple AirDrop implementation written in Python"; description = "Open Apple AirDrop implementation written in Python";
homepage = "https://owlink.org/"; homepage = "https://owlink.org/";
changelog = "https://github.com/seemoo-lab/opendrop/releases/tag/${src.rev}"; changelog = "https://github.com/seemoo-lab/opendrop/releases/tag/${src.rev}";
license = licenses.gpl3Only; license = lib.licenses.gpl3Only;
maintainers = [ ]; maintainers = with lib.maintainers; [ ];
mainProgram = "opendrop"; mainProgram = "opendrop";
platforms = [ "x86_64-linux" ]; platforms = [ "x86_64-linux" ];
}; };