diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2024-05-03 00:13:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 00:13:16 +0000 |
commit | 26d2f291dffdcb7e5f40896be3fc3bc72538dbd0 (patch) | |
tree | 5eab6c80968fb769f5433bc2fa6b96f102d17701 /pkgs/development/python-modules/uart-devices/default.nix | |
parent | 2918b2c876b74d0ba5e333676ee86228f51c24e8 (diff) | |
parent | 172094c8c1f83ee7f6d7dd10e64fdc7da0e4ac3b (diff) |
Merge master into haskell-updates
Diffstat (limited to 'pkgs/development/python-modules/uart-devices/default.nix')
-rw-r--r-- | pkgs/development/python-modules/uart-devices/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/uart-devices/default.nix b/pkgs/development/python-modules/uart-devices/default.nix new file mode 100644 index 0000000000000..7859d5ce32d10 --- /dev/null +++ b/pkgs/development/python-modules/uart-devices/default.nix @@ -0,0 +1,48 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytest-asyncio +, pythonOlder +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "uart-devices"; + version = "0.1.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "bdraco"; + repo = "uart-devices"; + rev = "refs/tags/v${version}"; + hash = "sha256-rmOWyTdOwnlr8Rwsvd2oeZq79LuGVJDAkIW2/9gGrKQ="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "-Wdefault --cov=uart_devices --cov-report=term-missing:skip-covered" "" + ''; + + nativeBuildInputs = [ + poetry-core + ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "uart_devices" ]; + + meta = with lib; { + description = "UART Devices for Linux"; + homepage = "https://github.com/bdraco/uart-devices"; + changelog = "https://github.com/bdraco/uart-devices/blob/${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + platforms = platforms.linux; + }; +} |