python311Packages.skybellpy: refactor

This commit is contained in:
Fabian Affolter
2024-05-22 12:52:10 +02:00
parent e4216e0253
commit da5a912371
@@ -8,22 +8,28 @@
, pythonOlder
, requests
, requests-mock
, setuptools
}:
buildPythonPackage rec {
pname = "skybellpy";
version = "0.6.3";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
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
];
@@ -35,13 +41,16 @@ buildPythonPackage rec {
requests-mock
];
pythonImportsCheck = [ "skybellpy" ];
pythonImportsCheck = [
"skybellpy"
];
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";
};
}