Merge pull request #313644 from fabaff/skybellpy-fix

python312Packages.skybellpy: disable on Python 3.12
This commit is contained in:
Weijia Wang 2024-05-22 14:10:15 +02:00 committed by GitHub
commit 5494b3414e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,29 +1,36 @@
{ 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";
};
}