diff --git a/pkgs/development/python-modules/zcc-helper/default.nix b/pkgs/development/python-modules/zcc-helper/default.nix new file mode 100644 index 000000000000..a53b5f032f71 --- /dev/null +++ b/pkgs/development/python-modules/zcc-helper/default.nix @@ -0,0 +1,42 @@ +{ + buildPythonPackage, + fetchFromBitbucket, + lib, + pytestCheckHook, + setuptools, +}: + +buildPythonPackage rec { + pname = "zcc-helper"; + version = "3.5.2"; + pyproject = true; + + src = fetchFromBitbucket { + owner = "mark_hannon"; + repo = "zcc"; + rev = "release_${version}"; + hash = "sha256-6cpLpzzJPoyWaldXZzptV2LY5aYmRtVf0rd1Ye71VG0="; + }; + + build-system = [ setuptools ]; + + pythonImportsCheck = [ "zcc" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + disabledTestPaths = [ + # tests require running a server + "tests/test_controller.py" + # fixture 'when' not found + "tests/test_socket.py" + ]; + + meta = { + description = "ZIMI ZCC helper module"; + homepage = "https://bitbucket.org/mark_hannon/zcc"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index faf0040093ef..05fe3e7ac3ca 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19556,6 +19556,8 @@ self: super: with self; { zcbor = callPackage ../development/python-modules/zcbor { }; + zcc-helper = callPackage ../development/python-modules/zcc-helper { }; + zconfig = callPackage ../development/python-modules/zconfig { }; zdaemon = callPackage ../development/python-modules/zdaemon { };