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