python312Packages.aiozeroconf: refactor

This commit is contained in:
Fabian Affolter
2024-04-18 17:31:35 +02:00
parent ede6e2b78e
commit 24cd8745c6
@@ -2,27 +2,39 @@
, buildPythonPackage
, fetchPypi
, netifaces
, isPy27
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "aiozeroconf";
version = "0.1.8";
format = "setuptools";
disabled = isPy27;
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "074plydm7sd113p3k0siihwwz62d3r42q3g83vqaffp569msknqh";
hash = "sha256-ENupazLlOqfwHugNLEgeTZjPOYxRgznuCKHpU5unlxw=";
};
propagatedBuildInputs = [ netifaces ];
build-system = [
setuptools
];
dependencies = [
netifaces
];
pythonImportsCheck = [
"aiozeroconf"
];
meta = with lib; {
description = "A pure python implementation of multicast DNS service discovery";
mainProgram = "aiozeroconf";
description = "Implementation of multicast DNS service discovery";
homepage = "https://github.com/jstasiak/python-zeroconf";
license = licenses.lgpl21;
license = licenses.lgpl21Only;
maintainers = with maintainers; [ obadz ];
mainProgram = "aiozeroconf";
};
}