Unverified Commit 5494b341 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #313644 from fabaff/skybellpy-fix

python312Packages.skybellpy: disable on Python 3.12
parents 9e57edba 62d0d76f
Loading
Loading
Loading
Loading
+26 −18
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, colorlog
, fetchFromGitHub
, pytest-sugar
, pytest-timeout
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
{
  lib,
  buildPythonPackage,
  colorlog,
  fetchFromGitHub,
  pytest-sugar,
  pytest-timeout,
  pytestCheckHook,
  pythonAtLeast,
  pythonOlder,
  requests,
  requests-mock,
  setuptools,
}:

buildPythonPackage rec {
  pname = "skybellpy";
  version = "0.6.3";
  format = "setuptools";
  disabled = pythonOlder "3.6";
  pyproject = true;

  # Still uses distrutils, https://github.com/MisterWil/skybellpy/issues/22
  disabled = pythonOlder "3.6" || pythonAtLeast "3.12";

  src = fetchFromGitHub {
    owner = "MisterWil";
    repo = pname;
    rev = "v${version}";
    sha256 = "1ghvm0pcdyhq6xfjc2dkldd701x77w07077sx09xsk6q2milmvzz";
    repo = "skybellpy";
    rev = "refs/tags/v${version}";
    hash = "sha256-/+9KYxXYTN0T6PoccAA/pwdwWqOzCSZdNxj6xi6oG74=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    colorlog
    requests
  ];
@@ -39,9 +46,10 @@ buildPythonPackage rec {

  meta = with lib; {
    description = "Python wrapper for the Skybell alarm API";
    mainProgram = "skybellpy";
    homepage = "https://github.com/MisterWil/skybellpy";
    license = with licenses; [ mit ];
    changelog = "https://github.com/MisterWil/skybellpy/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    mainProgram = "skybellpy";
  };
}