1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pbr,
6 setuptools,
7 six,
8 pytestCheckHook,
9 mock,
10 fixtures,
11 testtools,
12}:
13
14buildPythonPackage rec {
15 pname = "pymochad";
16 version = "0.3.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "mtreinish";
21 repo = "pymochad";
22 tag = version;
23 hash = "sha256-nwh97sbYkt4F/u02zTDemWEztSco27oJCemd6kTnCMk=";
24 };
25
26 env.PBR_VERSION = version;
27
28 build-system = [
29 pbr
30 setuptools
31 ];
32
33 dependencies = [
34 six
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 mock
40 fixtures
41 testtools
42 ];
43
44 pythonImportsCheck = [
45 "pymochad"
46 ];
47
48 meta = {
49 description = "Python library for sending commands to the mochad TCP gateway daemon for the X10 CMA15A controller";
50 homepage = "https://github.com/mtreinish/pymochad";
51 license = lib.licenses.gpl3Only;
52 maintainers = [ lib.maintainers.jamiemagee ];
53 };
54}