Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 64 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, python, buildPythonPackage, pytestCheckHook, fetchFromGitHub, hatchling, hatch-fancy-pypi-readme, hatch-requirements-txt, numpy, pillow, smbus2, spidev, gpiodevice,}:buildPythonPackage (finalAttrs: { pname = "inky"; version = "2.4.0"; pyproject = true;
src = fetchFromGitHub { owner = "pimoroni"; repo = "inky"; tag = "v${finalAttrs.version}"; hash = "sha256-wHAAfTAJ0MEmGrZypH/YOkyMzC+sav8fBEXnk/Q2ed0="; };
build-system = [ hatchling hatch-fancy-pypi-readme hatch-requirements-txt ];
dependencies = [ numpy pillow smbus2 spidev gpiodevice ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "inky" ];
# The build explicitly copies over these docs files, which cause collisions with other pimoroni repos. # Preserve the files (especially license), but move elsewhere. postInstall = '' mkdir -p $out/share/doc/${finalAttrs.pname} mkdir -p $out/share/licenses/${finalAttrs.pname}
mv "$out/${python.sitePackages}/LICENSE" $out/share/licenses/${finalAttrs.pname}/ mv "$out/${python.sitePackages}/README.md" $out/share/doc/${finalAttrs.pname}/ mv "$out/${python.sitePackages}/CHANGELOG.md" $out/share/doc/${finalAttrs.pname}/ '';
meta = { description = "Python library for Inky pHAT, Inky wHAT and Inky Impression e-paper displays for Raspberry Pi."; homepage = "https://github.com/pimoroni/inky"; changelog = "https://github.com/pimoroni/inky/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ theconcierge ]; };})