nuc
This commit is contained in:
@@ -9,12 +9,15 @@ with lib;
|
|||||||
let
|
let
|
||||||
cfg = config.${namespace}.services.home-assistant;
|
cfg = config.${namespace}.services.home-assistant;
|
||||||
|
|
||||||
# ESPHome with littlefs-python and fatfs added to PYTHONPATH so PlatformIO's
|
# ESPHome with littlefs-python and fatfs-ng added to PYTHONPATH so PlatformIO's
|
||||||
# espressif32 platform builder can import them (needed for LittleFS/FAT support).
|
# espressif32 platform builder can import them (needed for LittleFS/FAT support).
|
||||||
|
# fatfs-ng is the correct package: it installs under the 'fatfs' namespace and
|
||||||
|
# provides create_extended_partition and ESP32 wear-leveling support required by
|
||||||
|
# pioarduino's platform builder (penv_setup.py specifies "fatfs-ng>=0.1.14").
|
||||||
esphomeWithLittlefs = pkgs.esphome.overridePythonAttrs (oldAttrs: {
|
esphomeWithLittlefs = pkgs.esphome.overridePythonAttrs (oldAttrs: {
|
||||||
makeWrapperArgs = (oldAttrs.makeWrapperArgs or [ ]) ++ [
|
makeWrapperArgs = (oldAttrs.makeWrapperArgs or [ ]) ++ [
|
||||||
"--prefix PYTHONPATH : ${pkgs.${namespace}.littlefs-python}/${pkgs.python3.sitePackages}"
|
"--prefix PYTHONPATH : ${pkgs.${namespace}.littlefs-python}/${pkgs.python3.sitePackages}"
|
||||||
"--prefix PYTHONPATH : ${pkgs.${namespace}.fatfs}/${pkgs.python3.sitePackages}"
|
"--prefix PYTHONPATH : ${pkgs.${namespace}.fatfs-ng}/${pkgs.python3.sitePackages}"
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
in
|
in
|
||||||
|
|||||||
@@ -4,13 +4,14 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonPackage rec {
|
python3Packages.buildPythonPackage rec {
|
||||||
pname = "fatfs";
|
pname = "fatfs-ng";
|
||||||
version = "0.1.2";
|
version = "0.1.15";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
src = python3Packages.fetchPypi {
|
src = python3Packages.fetchPypi {
|
||||||
inherit pname version;
|
pname = "fatfs_ng";
|
||||||
hash = "sha256-gkx2ebxtJcRitGX68Xf4EAlxHP+b8wAbKpH5xb+lxYk=";
|
inherit version;
|
||||||
|
hash = "sha256-Uwgr6kzX6e5mHUokWEr0tjDxTK1giWrGmyMbrM91X4o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# wrapper.c is pre-generated in the sdist; Cython is not needed at build time.
|
# wrapper.c is pre-generated in the sdist; Cython is not needed at build time.
|
||||||
@@ -27,11 +28,12 @@ python3Packages.buildPythonPackage rec {
|
|||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
# fatfs-ng installs under the 'fatfs' namespace (ext_package='fatfs')
|
||||||
pythonImportsCheck = [ "fatfs" ];
|
pythonImportsCheck = [ "fatfs" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python bindings for ChaN's FatFS, the generic FAT/exFAT filesystem module";
|
description = "Enhanced Python wrapper around ChaN's FatFS library with ESP32 wear-leveling support";
|
||||||
homepage = "https://pypi.org/project/fatfs/";
|
homepage = "https://github.com/Jason2866/pyfatfs";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user