python3Packages.crownstone-uart: init at 2.1.0

This commit is contained in:
Fabian Affolter 2021-10-10 22:40:36 +02:00
parent 0465cd739c
commit 9cf1425116
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, crownstone-core
, buildPythonPackage
, pyserial
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "crownstone-uart";
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "crownstone";
repo = "crownstone-lib-python-uart";
rev = version;
sha256 = "0sdz131vmrfp6hrm9iwqw8mj9qazsxg7b85yadib1122w9f3b1zc";
};
propagatedBuildInputs = [
crownstone-core
pyserial
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"crownstone_uart"
];
meta = with lib; {
description = "Python module for communicating with Crownstone USB dongles";
homepage = "https://github.com/crownstone/crownstone-lib-python-uart";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1743,6 +1743,8 @@ in {
crownstone-core = callPackage ../development/python-modules/crownstone-core { };
crownstone-uart = callPackage ../development/python-modules/crownstone-uart { };
cryptacular = callPackage ../development/python-modules/cryptacular { };
cryptography = callPackage ../development/python-modules/cryptography {