410b979fe2
GitOrigin-RevId: a64e169e396460d6b5763a1de1dd197df8421688
42 lines
894 B
Nix
42 lines
894 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyblackbird";
|
|
version = "0.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "koolsb";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-+ehzrr+RrwFKOOuxBq3+mwnuMPxZFV4QTZG1IRgsbLc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyserial
|
|
pyserial-asyncio
|
|
];
|
|
|
|
# Test setup try to create a serial port
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"pyblackbird"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python implementation for Monoprice Blackbird units";
|
|
homepage = "https://github.com/koolsb/pyblackbird";
|
|
changelog = "https://github.com/koolsb/pyblackbird/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|