Merge pull request #305082 from fabaff/aiozeroconf-refactor

python312Packages.aiozeroconf: refactor
This commit is contained in:
Fabian Affolter 2024-04-19 08:42:30 +02:00 committed by GitHub
commit d5d6cdf6f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,28 +1,35 @@
{ lib
, buildPythonPackage
, fetchPypi
, netifaces
, isPy27
{
lib,
buildPythonPackage,
fetchPypi,
netifaces,
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";
};
}