mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
python312Packages.uart-devices: init at 0.1.0
UART Devices for Linux https://github.com/bdraco/uart-devices
This commit is contained in:
parent
bb54a0c197
commit
667777bf0f
47
pkgs/development/python-modules/uart-devices/default.nix
Normal file
47
pkgs/development/python-modules/uart-devices/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -16288,6 +16288,8 @@ self: super: with self; {
|
||||
|
||||
uarray = callPackage ../development/python-modules/uarray { };
|
||||
|
||||
uart-devices = callPackage ../development/python-modules/uart-devices { };
|
||||
|
||||
uasiren = callPackage ../development/python-modules/uasiren { };
|
||||
|
||||
ubelt = callPackage ../development/python-modules/ubelt { };
|
||||
|
Loading…
Reference in New Issue
Block a user