@@ -0,0 +1,39 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pythonOlder
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "pydevccu";
9+ version = "0.0.9";
10+ format = "setuptools";
11+
12+ disabled = pythonOlder "3.8";
13+
14+ src = fetchFromGitHub {
15+ owner = "danielperna84";
16+ repo = pname;
17+ rev = version;
18+ sha256 = "sha256-/4sJ5T17nCcTjg1Me4zTlOEOkK1py9kl2YeLGv4X6us=";
19+ };
20+
21+ postPatch = ''
22+ # Fix file name, https://github.com/danielperna84/pydevccu/pull/8
23+ mv pydevccu/paramset_descriptions/HmIP-STDH.json pydevccu/paramset_descriptions/HmIP-STHD.json
24+ '';
25+
26+ # Module has no tests
27+ doCheck = false;
28+
29+ pythonImportsCheck = [
30+ "pydevccu"
31+ ];
32+
33+ meta = with lib; {
34+ description = "HomeMatic CCU XML-RPC Server with fake devices";
35+ homepage = "https://github.com/danielperna84/pydevccu";
36+ license = with licenses; [ mit ];
37+ maintainers = with maintainers; [ fab ];
38+ };
39+}