1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 orjson,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pydevccu";
12 version = "0.1.17";
13 pyproject = true;
14
15 disabled = pythonOlder "3.13";
16
17 src = fetchFromGitHub {
18 owner = "SukramJ";
19 repo = "pydevccu";
20 tag = version;
21 hash = "sha256-yBAnQVuLXcGY+hGVo0Oqes5puSF0VflpMvHRAZHndyo=";
22 };
23
24 postPatch = ''
25 substituteInPlace pyproject.toml \
26 --replace-fail "setuptools==75.6.0" setuptools
27 '';
28
29 pythonRelaxDeps = [ "orjson" ];
30
31 build-system = [ setuptools ];
32
33 dependencies = [ orjson ];
34
35 # Module has no tests
36 doCheck = false;
37
38 pythonImportsCheck = [ "pydevccu" ];
39
40 meta = {
41 description = "HomeMatic CCU XML-RPC Server with fake devices";
42 homepage = "https://github.com/SukramJ/pydevccu";
43 changelog = "https://github.com/SukramJ/pydevccu/releases/tag/${src.tag}";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ fab ];
46 };
47}