Merge pull request #257782 from fabaff/pyweatherflowudp
python311Packages.pyweatherflowudp: init at 1.4.4
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "psychrolib";
|
||||
version = "2.5.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "psychrometrics";
|
||||
repo = "psychrolib";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-OkjoYIakF7NXluNTaJnUHk5cI5t8GnpqrbqHYwnLOts=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/src/python";
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"psychrolib"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library of psychrometric functions to calculate thermodynamic properties";
|
||||
homepage = "https://github.com/psychrometrics/psychrolib";
|
||||
changelog = "https://github.com/psychrometrics/psychrolib/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pint
|
||||
, poetry-core
|
||||
, psychrolib
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyweatherflowudp";
|
||||
version = "1.4.4";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "briis";
|
||||
repo = "pyweatherflowudp";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-5WdkT4U/+uO9UUIxumrxCKZnK9MdQcvfaO9UfpmpxJE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pint
|
||||
psychrolib
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyweatherflowudp"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests require network access
|
||||
"test_flow_control"
|
||||
"test_listen_and_stop"
|
||||
"test_repetitive_listen_and_stop"
|
||||
"test_process_message"
|
||||
"test_listener_connection_errors"
|
||||
"test_invalid_messages"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library to receive UDP Packets from Weatherflow Weatherstations";
|
||||
homepage = "https://github.com/briis/pyweatherflowudp";
|
||||
changelog = "https://github.com/briis/pyweatherflowudp/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8747,6 +8747,8 @@ self: super: with self; {
|
||||
|
||||
psutil-home-assistant = callPackage ../development/python-modules/psutil-home-assistant { };
|
||||
|
||||
psychrolib = callPackage ../development/python-modules/psychrolib { };
|
||||
|
||||
psycopg = callPackage ../development/python-modules/psycopg { };
|
||||
|
||||
psycopg2 = callPackage ../development/python-modules/psycopg2 { };
|
||||
@@ -10921,6 +10923,8 @@ self: super: with self; {
|
||||
|
||||
pyweatherflowrest = callPackage ../development/python-modules/pyweatherflowrest { };
|
||||
|
||||
pyweatherflowudp = callPackage ../development/python-modules/pyweatherflowudp { };
|
||||
|
||||
pywebpush = callPackage ../development/python-modules/pywebpush { };
|
||||
|
||||
pywebview = callPackage ../development/python-modules/pywebview { };
|
||||
|
||||
Reference in New Issue
Block a user