diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-05-01 23:08:29 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-05-01 23:08:29 +0200 |
commit | f1bf42d3f0ccd2f7e46187d4cd1f2fae8e62bb2e (patch) | |
tree | ae9600c5c1234ed2f6a4d8c92067176900e31b5a | |
parent | 5d8050ccfccd89a16ddda97ff25bba3fd36c7b87 (diff) |
python312Packages.upb-lib: 0.5.4 -> 0.5.6
Diff: https://github.com/gwww/upb-lib/compare/refs/tags/0.5.4...0.5.6
Changelog: https://github.com/gwww/upb-lib/releases/tag/0.5.6
-rw-r--r-- | pkgs/development/python-modules/upb-lib/default.nix | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/upb-lib/default.nix b/pkgs/development/python-modules/upb-lib/default.nix index ea00a6c97e81..da85053a7d18 100644 --- a/pkgs/development/python-modules/upb-lib/default.nix +++ b/pkgs/development/python-modules/upb-lib/default.nix @@ -1,37 +1,51 @@ { lib , buildPythonPackage +, fetchFromGitHub +, pyserial-asyncio-fast +, pytestCheckHook , pythonOlder -, fetchPypi -, pyserial-asyncio , pytz +, poetry-core }: buildPythonPackage rec { pname = "upb-lib"; - version = "0.5.4"; - format = "setuptools"; + version = "0.5.6"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.11"; - src = fetchPypi { - pname = "upb_lib"; - inherit version; - hash = "sha256-KEnSADj+sQtz37Xbi6fXoe2TN+F5Z9SYnlvCgXtxVnk="; + src = fetchFromGitHub { + owner = "gwww"; + repo = "upb-lib"; + rev = "refs/tags/${version}"; + hash = "sha256-e8LYywKA5lNZ4UYFZTwcfePDWB4cTNz38Tiy4xzOxOs="; }; - propagatedBuildInputs = [ - pyserial-asyncio + build-system = [ + poetry-core + ]; + + dependencies = [ + pyserial-asyncio-fast pytz ]; - # no tests on PyPI, no tags on GitHub - doCheck = false; + nativeCheckInputs = [ + pytestCheckHook + ]; pythonImportsCheck = [ "upb_lib" ]; + disabledTests = [ + # AssertionError + "test_create_control_word_all" + ]; + meta = with lib; { description = "Library for interacting with UPB PIM"; homepage = "https://github.com/gwww/upb-lib"; + changelog = "https://github.com/gwww/upb-lib/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; }; |