mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #110378 from fabaff/adafruit
This commit is contained in:
commit
ee8309dbe6
4 changed files with 91 additions and 0 deletions
|
@ -0,0 +1,28 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Adafruit-PlatformDetect";
|
||||
version = "2.27.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0rnmy74rjjcyni5sr8h1djffpj7wngn2wqckl5vknp2smaihp34l";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
|
||||
# Project has not published tests yet
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "adafruit_platformdetect" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Platform detection for use by Adafruit libraries";
|
||||
homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
29
pkgs/development/python-modules/adafruit-pureio/default.nix
Normal file
29
pkgs/development/python-modules/adafruit-pureio/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Adafruit-PureIO";
|
||||
version = "1.1.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Adafruit_PureIO";
|
||||
inherit version;
|
||||
sha256 = "1mfa6sfz7qwgajz3lqw0s69ivvwbwvblwkjzbrwdrxjbma4jaw66";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
|
||||
# Physical SMBus is not present
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "Adafruit_PureIO" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python interface to Linux IO including I2C and SPI";
|
||||
homepage = "https://github.com/adafruit/Adafruit_Python_PureIO";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pyserial
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "binho-host-adapter";
|
||||
version = "0.1.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0mp8xa1qwaww2k5g2nqg7mcivzsbfw2ny1l9yjsi73109slafv8y";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyserial ];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "binhoHostAdapter" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for Binho Multi-Protocol USB Host Adapters";
|
||||
homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -162,6 +162,10 @@ in {
|
|||
|
||||
actdiag = callPackage ../development/python-modules/actdiag { };
|
||||
|
||||
adafruit-platformdetect = callPackage ../development/python-modules/adafruit-platformdetect { };
|
||||
|
||||
adafruit-pureio = callPackage ../development/python-modules/adafruit-pureio { };
|
||||
|
||||
adal = callPackage ../development/python-modules/adal { };
|
||||
|
||||
adb-homeassistant = callPackage ../development/python-modules/adb-homeassistant { };
|
||||
|
@ -921,6 +925,8 @@ in {
|
|||
|
||||
binaryornot = callPackage ../development/python-modules/binaryornot { };
|
||||
|
||||
binho-host-adapter = callPackage ../development/python-modules/binho-host-adapter { };
|
||||
|
||||
binwalk = callPackage ../development/python-modules/binwalk {
|
||||
pyqtgraph = null;
|
||||
matplotlib = null;
|
||||
|
|
Loading…
Reference in a new issue