Merge pull request #271323 from SuperSandro2000/ledfx-deps

ledfx: add python-{mbedtls,osc} dependency
This commit is contained in:
Martin Weinelt 2023-12-01 01:25:13 +01:00 committed by GitHub
commit a66c1d8c1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 1 deletions

View File

@ -16,7 +16,7 @@ python3.pkgs.buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "'rpi-ws281x>=4.3.0; platform_system == \"Linux\"'," "" \
--replace '"sentry-sdk==1.14.0",' "" \
--replace '"sentry-sdk==1.14.0",' "sentry-sdk" \
--replace "~=" ">="
'';
@ -40,6 +40,8 @@ python3.pkgs.buildPythonPackage rec {
psutil
pyserial
pystray
python-mbedtls
python-osc
python-rtmidi
# rpi-ws281x # not packaged
requests

View File

@ -0,0 +1,50 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, certifi
, cython
, mbedtls_2
, pytestCheckHook
, setuptools
, typing-extensions
}:
buildPythonPackage rec {
pname = "python-mbedtls";
version = "2.8.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "Synss";
repo = "python-mbedtls";
rev = version;
hash = "sha256-gMFludfAprQ/1JR77Ee6/xVvGLJ9pY1LrouLpSKVrzk=";
};
nativeBuildInputs = [
cython
setuptools
];
buildInputs = [
mbedtls_2
];
propagatedBuildInputs = [
certifi
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "mbedtls" ];
meta = with lib; {
description = "Cryptographic library with an mbed TLS back end";
homepage = "https://github.com/Synss/python-mbedtls";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -9370,6 +9370,8 @@ self: super: with self; {
python-lsp-black = callPackage ../development/python-modules/python-lsp-black { };
python-mbedtls = callPackage ../development/python-modules/python-mbedtls { };
python-memcached = callPackage ../development/python-modules/python-memcached { };
python-otbr-api = callPackage ../development/python-modules/python-otbr-api { };