Unverified Commit 64114697 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #229842 from fabaff/pyvicare-bump

python311Packages.pyvicare: 2.25.0 -> 2.27.1
parents 5807490c 6a54ce23
Loading
Loading
Loading
Loading
+12 −12
Original line number Diff line number Diff line
{ 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;

  postPatch = ''
    substituteInPlace setup.py \
      --replace "version_config=True," 'version="${version}",' \
      --replace "'setuptools-git-versioning<1.8.0'" ""
  '';

  propagatedBuildInputs = [
    requests-oauthlib
    simplejson
    authlib
    pkce
  ];

  nativeCheckInputs = [
    pytestCheckHook
    simplejson
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "version_config=True," 'version="${version}",' \
      --replace "'setuptools-git-versioning<1.8.0'" ""
  '';

  pythonImportsCheck = [
    "PyViCare"
  ];