1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "spidev";
10 version = "3.8";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "doceme";
15 repo = "py-spidev";
16 tag = "v${version}";
17 hash = "sha256-ysOLZWsMiHjPxQ7fMWsywp44vkNGFGH8n6X7zk7XQck=";
18 };
19
20 build-system = [ setuptools ];
21
22 doCheck = false; # no tests
23
24 pythonImportsCheck = [ "spidev" ];
25
26 meta = with lib; {
27 changelog = "https://github.com/doceme/py-spidev/releases/tag/${src.tag}";
28 homepage = "https://github.com/doceme/py-spidev";
29 description = "Python bindings for Linux SPI access through spidev";
30 license = licenses.mit;
31 maintainers = with maintainers; [ hexa ];
32 platforms = platforms.linux;
33 };
34}