01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
43 lines
824 B
Nix
43 lines
824 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyserial
|
|
, sockio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "serialio";
|
|
version = "2.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tiagocoutinho";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-9TRGT0wpoRRcHqnH1XzlMBh0IcVzdEcOzN7hkeYnoW4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyserial
|
|
sockio
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"serialio"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library for concurrency agnostic serial connunication";
|
|
homepage = "https://github.com/tiagocoutinho/serialio";
|
|
license = with licenses; [ gpl3Plus ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|