nuc
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "fatfs-ng";
|
||||
version = "0.1.15";
|
||||
format = "setuptools";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
pname = "fatfs_ng";
|
||||
inherit version;
|
||||
hash = "sha256-qwSMf3s8+IxVi6mHEWr8vYa6/bMUXcaGWhULUMaADAs=";
|
||||
};
|
||||
|
||||
# wrapper.c is pre-generated in the sdist; Cython is not needed at build time.
|
||||
# Patch out setup_requires=['cython'] to prevent setuptools from trying to
|
||||
# fetch it via pip at build time (which fails in the Nix sandbox).
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail "setup_requires=['cython']," ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
setuptools
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
# fatfs-ng installs under the 'fatfs' namespace (ext_package='fatfs')
|
||||
pythonImportsCheck = [ "fatfs" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Enhanced Python wrapper around ChaN's FatFS library with ESP32 wear-leveling support";
|
||||
homepage = "https://github.com/Jason2866/pyfatfs";
|
||||
license = licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
pname = "littlefs-python";
|
||||
version = "0.17.1";
|
||||
pyproject = true;
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
pname = "littlefs_python";
|
||||
inherit version;
|
||||
hash = "sha256-O8D9Tnf5T6ZVlRdRfPqj38dCUkcayW4a5fWQaJ4ErtA=";
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
cython
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "littlefs" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for littlefs, the filesystem designed for small embedded targets";
|
||||
homepage = "https://github.com/jrast/littlefs-python";
|
||||
license = licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user