diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-05-01 09:54:32 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-05-01 09:54:32 +0200 |
commit | 667777bf0f2d92ebc17324397614c8b8af4ece7f (patch) | |
tree | 5fdfb1faefcd8781c43c8e90d8a82b96da1dfe8e /pkgs/development | |
parent | bb54a0c1977614ea64113f587396ecc55d0f0f4a (diff) |
python312Packages.uart-devices: init at 0.1.0
UART Devices for Linux https://github.com/bdraco/uart-devices
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/uart-devices/default.nix | 47 |
1 files changed, 47 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..171bf2b660012 --- /dev/null +++ b/pkgs/development/python-modules/uart-devices/default.nix @@ -0,0 +1,47 @@ +{ 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 ]; + }; +} |