python311Packages.pyvicare: 2.25.0 -> 2.27.1

Diff: https://github.com/somm15/PyViCare/compare/refs/tags/2.25.0...2.27.1
This commit is contained in:
Fabian Affolter 2023-05-04 10:11:59 +02:00
parent 3428bdf3c9
commit 6a54ce23e2

View File

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