This commit is contained in:
mjallen18
2026-03-16 17:08:37 -05:00
parent dad0dbf6b5
commit 1d2d031609

View File

@@ -6,16 +6,23 @@
python3Packages.buildPythonPackage rec {
pname = "fatfs";
version = "0.1.2";
pyproject = false;
format = "setuptools";
src = python3Packages.fetchPypi {
inherit pname version;
hash = "sha256-gkx2ebxtJcRitGX68Xf4EAlxHP+b8wAbKpH5xb+lxYk=";
};
build-system = with python3Packages; [
# 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
cython
];
doCheck = false;