mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-10 22:30:59 +00:00
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
buildPythonPackage,
|
|
click,
|
|
fetchFromGitHub,
|
|
lib,
|
|
pyserial,
|
|
pytestCheckHook,
|
|
rich,
|
|
rich-click,
|
|
setuptools,
|
|
websockets,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "esp-pylib";
|
|
version = "1.1.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "espressif";
|
|
repo = "esp-pylib";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-omkTO5a8aqAoYqp0W3KaW2P/O8KJYeYZ51uGcOIPQew=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
rich
|
|
];
|
|
|
|
optional-dependencies = {
|
|
cli = [
|
|
click
|
|
rich-click
|
|
];
|
|
ide = [
|
|
websockets
|
|
];
|
|
serial = [
|
|
pyserial
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [ "esp_pylib" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
]
|
|
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/espressif/esp-pylib/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
description = "Python library for logging, utils and constants for Espressif Systems' Python projects";
|
|
homepage = "https://github.com/espressif/esp-pylib";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.dotlambda ];
|
|
};
|
|
})
|