diff --git a/pkgs/development/python-modules/pyvicare/default.nix b/pkgs/development/python-modules/pyvicare/default.nix index 14773604be36..846eacbf1bc4 100644 --- a/pkgs/development/python-modules/pyvicare/default.nix +++ b/pkgs/development/python-modules/pyvicare/default.nix @@ -1,16 +1,16 @@ { lib +, authlib , buildPythonPackage , fetchFromGitHub , pkce , pytestCheckHook , pythonOlder -, requests-oauthlib , simplejson }: buildPythonPackage rec { pname = "pyvicare"; - version = "2.25.0"; + version = "2.27.1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -18,28 +18,28 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "somm15"; repo = "PyViCare"; - rev = version; - hash = "sha256-OZvYl8wl8kOIOfsWVn74XFKMX/jAmtoMTIEQpAZmTeo="; + rev = "refs/tags/${version}"; + hash = "sha256-PlXVsDLCEBjsll9cXPJqvNSFyjtGol9jXYWzaYHWNw4="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; - propagatedBuildInputs = [ - requests-oauthlib - simplejson - pkce - ]; - - nativeCheckInputs = [ - pytestCheckHook - ]; - postPatch = '' substituteInPlace setup.py \ --replace "version_config=True," 'version="${version}",' \ --replace "'setuptools-git-versioning<1.8.0'" "" ''; + propagatedBuildInputs = [ + authlib + pkce + ]; + + nativeCheckInputs = [ + pytestCheckHook + simplejson + ]; + pythonImportsCheck = [ "PyViCare" ];