python3Packages.inky: init at 2.3.0 (#482926)
This commit is contained in:
@@ -26222,6 +26222,12 @@
|
||||
githubId = 18369995;
|
||||
keys = [ { fingerprint = "3D8C A43C FBA2 5D28 0196 19F0 AB11 0475 B417 291D"; } ];
|
||||
};
|
||||
theconcierge = {
|
||||
name = "TheConcierge";
|
||||
email = "therealconcierge@proton.me";
|
||||
github = "TheConcierge";
|
||||
githubId = 10949861;
|
||||
};
|
||||
thedavidmeister = {
|
||||
email = "thedavidmeister@gmail.com";
|
||||
github = "thedavidmeister";
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
lib,
|
||||
python,
|
||||
buildPythonPackage,
|
||||
pytestCheckHook,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
hatch-fancy-pypi-readme,
|
||||
libgpiod,
|
||||
mock,
|
||||
}:
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "gpiodevice";
|
||||
version = "0.0.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pimoroni";
|
||||
repo = "gpiodevice-python";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-1vZHRCHUmG+t0TYxYzc2qwElKrcLa0WmQ+FI5GTN1A8=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
hatchling
|
||||
hatch-fancy-pypi-readme
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
libgpiod
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "gpiodevice" ];
|
||||
|
||||
# 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 = "Helper library for working with Linux gpiochip devices";
|
||||
homepage = "https://github.com/pimoroni/gpiodevice-python";
|
||||
changelog = "https://github.com/pimoroni/gpiodevice-python/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ theconcierge ];
|
||||
};
|
||||
})
|
||||
@@ -0,0 +1,64 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
@@ -6496,6 +6496,8 @@ self: super: with self; {
|
||||
|
||||
gpib-ctypes = callPackage ../development/python-modules/gpib-ctypes { };
|
||||
|
||||
gpiodevice = callPackage ../development/python-modules/gpiodevice { };
|
||||
|
||||
gpiozero = callPackage ../development/python-modules/gpiozero { };
|
||||
|
||||
gprof2dot = callPackage ../development/python-modules/gprof2dot { inherit (pkgs) graphviz; };
|
||||
@@ -7410,6 +7412,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 { };
|
||||
|
||||
Reference in New Issue
Block a user