38 lines
754 B
Nix
38 lines
754 B
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
pkgs,
|
|
}:
|
|
python3.pkgs.buildPythonPackage rec {
|
|
pname = "rpi-ws281x";
|
|
version = "5.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rpi-ws281x";
|
|
repo = "rpi-ws281x-python";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-CVPibDs1QLeXhtoEBw3JplKIIUpzahjgJKy8GVy99Wk=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
format = "setuptools";
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
postUnpack = ''
|
|
sourceRoot="$sourceRoot/library"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python bindings for the rpi_ws281x C library";
|
|
homepage = "https://github.com/rpi-ws281x/rpi-ws281x-python";
|
|
license = licenses.mit;
|
|
maintainers = [];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|