From bce2e72b7acc410d00ccbfc64e7b8103946df36e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 5 Feb 2025 18:49:56 +0100 Subject: [PATCH] python313Packages.pyvesync: 2.1.15 -> 2.1.17 https://github.com/webdjoe/pyvesync/releases/tag/2.1.16 https://github.com/webdjoe/pyvesync/releases/tag/2.1.17 --- .../python-modules/pyvesync/default.nix | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/pyvesync/default.nix b/pkgs/development/python-modules/pyvesync/default.nix index ec065d0d95d6..ff65cf8bfdb8 100644 --- a/pkgs/development/python-modules/pyvesync/default.nix +++ b/pkgs/development/python-modules/pyvesync/default.nix @@ -1,27 +1,36 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, requests, + pytestCheckHook, pythonOlder, + pyyaml, + setuptools, }: buildPythonPackage rec { pname = "pyvesync"; - version = "2.1.15"; - format = "setuptools"; + version = "2.1.17"; + pyproject = true; disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - hash = "sha256-iXahtcD5jKP5hRtXxtgA3x0+zxaWu1zo/QrWfFEmB0w="; + src = fetchFromGitHub { + owner = "webdjoe"; + repo = "pyvesync"; + tag = version; + hash = "sha256-h5pxoPtIZVfhSHyvCkde2uVMzNjqXEYaMM8+gsNMd/k="; }; - propagatedBuildInputs = [ requests ]; + build-system = [ setuptools ]; - # Test are not available (not in PyPI tarball and there are no GitHub releases) - doCheck = false; + dependencies = [ requests ]; + + nativeCheckInputs = [ + pytestCheckHook + pyyaml + ]; pythonImportsCheck = [ "pyvesync" ];