Diff: https://github.com/Kane610/deconz/compare/refs/tags/v119...v120 Changelog: https://github.com/Kane610/deconz/releases/tag/v120
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aioresponses,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
orjson,
|
|
pytest-aiohttp,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pydeconz";
|
|
version = "120";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kane610";
|
|
repo = "deconz";
|
|
tag = "v${version}";
|
|
hash = "sha256-L9v6j8CFc19TlcFBTm3YCQG1nS78uIUfERB6mfwzMNM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "setuptools==77.0.3" "setuptools" \
|
|
--replace-fail "wheel==" "wheel>="
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
orjson
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-aiohttp
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pydeconz" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library wrapping the Deconz REST API";
|
|
homepage = "https://github.com/Kane610/deconz";
|
|
changelog = "https://github.com/Kane610/deconz/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "pydeconz";
|
|
};
|
|
}
|