3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/spidev/default.nix
Martin Weinelt dfaca8a8ac
python3Packages.spidev: set platforms to linux only (#122091)
The module interfaces with the linux kernel and its sysfs, so it is
unsupported on anything but Linux.
2021-05-07 22:24:18 +02:00

26 lines
584 B
Nix

{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "spidev";
version = "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "03cicc9kpi5khhq0bl4dcy8cjcl2j488mylp8sna47hnkwl5qzwa";
};
# package does not include tests
doCheck = false;
pythonImportsCheck = [ "spidev" ];
meta = with lib; {
homepage = "https://github.com/doceme/py-spidev";
description = "Python bindings for Linux SPI access through spidev";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
platforms = platforms.linux;
};
}