diff --git a/pkgs/development/python-modules/pyecowitt/default.nix b/pkgs/development/python-modules/pyecowitt/default.nix new file mode 100644 index 000000000000..b5f4a5fadbac --- /dev/null +++ b/pkgs/development/python-modules/pyecowitt/default.nix @@ -0,0 +1,39 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pyecowitt"; + version = "0.21"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "garbled1"; + repo = pname; + rev = version; + sha256 = "5VdVo6j2HZXSCWU4NvfWzyS/KJfVb7N1KSMeu8TvWaQ="; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Project thas no tests + doCheck = false; + + pythonImportsCheck = [ + "pyecowitt" + ]; + + meta = with lib; { + description = "Python module for the EcoWitt Protocol"; + homepage = "https://github.com/garbled1/pyecowitt"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2f415e50f96f..8e6f4f974d9b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6442,6 +6442,8 @@ in { pyeconet = callPackage ../development/python-modules/pyeconet { }; + pyecowitt = callPackage ../development/python-modules/pyecowitt { }; + pyedimax = callPackage ../development/python-modules/pyedimax { }; pyee = callPackage ../development/python-modules/pyee { };