From 7daf8fbabc82dcb272a757f9e9ae71fc05c1bb21 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Dec 2022 17:14:30 +0100 Subject: [PATCH] python310Packages.aranet4: 2.1.2 -> 2.1.3 Diff: https://github.com/Anrijs/Aranet4-Python/compare/refs/tags/v2.1.2...v2.1.3 - enable tests --- .../python-modules/aranet4/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/aranet4/default.nix b/pkgs/development/python-modules/aranet4/default.nix index c9cce5ff61a8..09781342b288 100644 --- a/pkgs/development/python-modules/aranet4/default.nix +++ b/pkgs/development/python-modules/aranet4/default.nix @@ -1,7 +1,7 @@ { lib , bleak , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pytestCheckHook , pythonOlder , requests @@ -9,14 +9,16 @@ buildPythonPackage rec { pname = "aranet4"; - version = "2.1.2"; + version = "2.1.3"; format = "setuptools"; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-nuxj/rNuwAy1DXaJs0Qrl9GffiZqFkWxT/0TYRxg92s="; + src = fetchFromGitHub { + owner = "Anrijs"; + repo = "Aranet4-Python"; + rev = "refs/tags/v${version}"; + hash = "sha256-5q4eOC9iuN8pUmDsiQ7OwEXkxi4KdL+bhGVjlQlTBAg="; }; propagatedBuildInputs = [ @@ -24,8 +26,9 @@ buildPythonPackage rec { requests ]; - # https://github.com/Anrijs/Aranet4-Python/issues/31 - doCheck = false; + checkInputs = [ + pytestCheckHook + ]; pythonImportsCheck = [ "aranet4"