fix avahi
This commit is contained in:
@@ -1,22 +1,28 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
namespace,
|
||||
pkgs,
|
||||
python3Packages,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (lib.trivial) importJSON;
|
||||
inherit (lib.${namespace}) selectVariant mkAllSources;
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
versionSpec = importJSON ./version.json;
|
||||
selected = selectVariant versionSpec null null;
|
||||
sources = mkAllSources pkgs selected;
|
||||
src-meta = selected.sources.pyvesync;
|
||||
version = selected.variables.version;
|
||||
in
|
||||
python3Packages.buildPythonPackage {
|
||||
pname = "pyvesync";
|
||||
version = "3.4.1";
|
||||
inherit version;
|
||||
pyproject = true;
|
||||
|
||||
disabled = python3Packages.pythonOlder "3.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "webdjoe";
|
||||
repo = "pyvesync";
|
||||
rev = version;
|
||||
hash = "sha256-iqOKBpP/TYgbs6Tq+eWhxBCu/bHYRELXY7r4zjEXU3Q=";
|
||||
};
|
||||
src = sources.pyvesync;
|
||||
|
||||
build-system = with python3Packages; [ setuptools ];
|
||||
|
||||
@@ -31,7 +37,7 @@ python3Packages.buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Python library to manage Etekcity Devices and Levoit Air Purifier";
|
||||
homepage = "https://github.com/webdjoe/pyvesync";
|
||||
changelog = "https://github.com/webdjoe/pyvesync/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/webdjoe/pyvesync/releases/tag/${src-meta.tag}";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user