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" ];