Loading pkgs/development/python-modules/inky/default.nix 0 → 100644 +64 −0 Original line number Diff line number Diff line { lib, python, buildPythonPackage, pytestCheckHook, fetchFromGitHub, hatchling, hatch-fancy-pypi-readme, hatch-requirements-txt, numpy, pillow, smbus2, spidev, gpiodevice, }: buildPythonPackage (finalAttrs: { pname = "inky"; version = "2.3.0"; pyproject = true; src = fetchFromGitHub { owner = "pimoroni"; repo = "inky"; tag = "v${finalAttrs.version}"; hash = "sha256-1z2AZr6mlrl1O071iWS+tbWopUEUzLZe/QTmvl2atxQ="; }; 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 ]; }; }) pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -7390,6 +7390,8 @@ self: super: with self; { inkex = callPackage ../development/python-modules/inkex { }; inky = callPackage ../development/python-modules/inky { }; inline-snapshot = callPackage ../development/python-modules/inline-snapshot { }; inotify = callPackage ../development/python-modules/inotify { }; Loading Loading
pkgs/development/python-modules/inky/default.nix 0 → 100644 +64 −0 Original line number Diff line number Diff line { lib, python, buildPythonPackage, pytestCheckHook, fetchFromGitHub, hatchling, hatch-fancy-pypi-readme, hatch-requirements-txt, numpy, pillow, smbus2, spidev, gpiodevice, }: buildPythonPackage (finalAttrs: { pname = "inky"; version = "2.3.0"; pyproject = true; src = fetchFromGitHub { owner = "pimoroni"; repo = "inky"; tag = "v${finalAttrs.version}"; hash = "sha256-1z2AZr6mlrl1O071iWS+tbWopUEUzLZe/QTmvl2atxQ="; }; 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 ]; }; })
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -7390,6 +7390,8 @@ self: super: with self; { inkex = callPackage ../development/python-modules/inkex { }; inky = callPackage ../development/python-modules/inky { }; inline-snapshot = callPackage ../development/python-modules/inline-snapshot { }; inotify = callPackage ../development/python-modules/inotify { }; Loading