From 6a54ce23e2532baf587d1e1427fc8bb794d96bdc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 May 2023 10:11:59 +0200 Subject: [PATCH] python311Packages.pyvicare: 2.25.0 -> 2.27.1 Diff: https://github.com/somm15/PyViCare/compare/refs/tags/2.25.0...2.27.1 --- .../python-modules/pyvicare/default.nix | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) 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" ];