mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
python3Packages.epaper-dithering: 0.6.4 -> 5.0.6
https://github.com/OpenDisplay/epaper-dithering/releases/tag/epaper-dithering-v5.0.6 Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
This commit is contained in:
committed by
Martin Weinelt
parent
ec9829f8e4
commit
ad8945c779
@@ -2,34 +2,49 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
numpy,
|
||||
pillow,
|
||||
pytestCheckHook,
|
||||
rustPlatform,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "epaper-dithering";
|
||||
version = "0.6.4";
|
||||
version = "5.0.6";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenDisplay";
|
||||
repo = "epaper-dithering";
|
||||
tag = "python-v${finalAttrs.version}";
|
||||
hash = "sha256-GWILjyzPg5mCDQ6jQw5o3v+gkbdxiHzSSVQkW3dC01I=";
|
||||
tag = "epaper-dithering-v${finalAttrs.version}";
|
||||
hash = "sha256-8xkgKOHS68aQWrJLNwUusZzXK7oAyjDvxd9c5aUDA84=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/packages/python";
|
||||
|
||||
build-system = [ hatchling ];
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit (finalAttrs)
|
||||
pname
|
||||
version
|
||||
src
|
||||
sourceRoot
|
||||
;
|
||||
hash = "sha256-RBOULCydXgTR8Snc1cecvW4KqGDLYjZsYwlJovuvN2I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.maturinBuildHook
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
numpy
|
||||
pillow
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
numpy
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "epaper_dithering" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user