Merge pull request #313644 from fabaff/skybellpy-fix
python312Packages.skybellpy: disable on Python 3.12
This commit is contained in:
commit
5494b3414e
@ -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";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user