python313Packages.py-air-control: modernize
This commit is contained in:
@@ -1,37 +1,39 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
coapthon3,
|
||||
fetchFromGitHub,
|
||||
isPy27,
|
||||
lib,
|
||||
pycryptodomex,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py-air-control";
|
||||
version = "2.3.0";
|
||||
format = "setuptools";
|
||||
disabled = isPy27;
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rgerganov";
|
||||
repo = "py-air-control";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-3Qk1cmF31vJhUEckjfbYM9IDgD+gVkZtQlXel8iP/b8=";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-3Qk1cmF31vJhUEckjfbYM9IDgD+gVkZtQlXel8iP/b8=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
pycryptodomex
|
||||
coapthon3
|
||||
];
|
||||
|
||||
# tests sometimes hang forever on tear-down
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "pyairctrl" ];
|
||||
|
||||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
description = "Command Line App for Controlling Philips Air Purifiers";
|
||||
homepage = "https://github.com/rgerganov/py-air-control";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ urbas ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user