python3Packages.rflink: init at 0.0.58
This commit is contained in:
parent
5555f34784
commit
3d92784940
2 changed files with 50 additions and 0 deletions
48
pkgs/development/python-modules/rflink/default.nix
Normal file
48
pkgs/development/python-modules/rflink/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, async-timeout
|
||||
, docopt
|
||||
, pyserial
|
||||
, pyserial-asyncio
|
||||
, setuptools
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rflink";
|
||||
version = "0.0.58";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aequitas";
|
||||
repo = "python-rflink";
|
||||
rev = version;
|
||||
sha256 = "1zab55lsw419gg0jfrl69ap6128vbi3wdmg5z7qin65ijpjdhasc";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "version=version_from_git()" "version='${version}'"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-timeout
|
||||
docopt
|
||||
pyserial
|
||||
pyserial-asyncio
|
||||
setuptools
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "rflink.protocol" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library and CLI tools for interacting with RFlink 433MHz transceiver";
|
||||
homepage = "https://github.com/aequitas/python-rflink";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -7498,6 +7498,8 @@ in {
|
|||
|
||||
rfcat = callPackage ../development/python-modules/rfcat { };
|
||||
|
||||
rflink = callPackage ../development/python-modules/rflink { };
|
||||
|
||||
rich = callPackage ../development/python-modules/rich { };
|
||||
|
||||
rig = callPackage ../development/python-modules/rig { };
|
||||
|
|
Loading…
Reference in a new issue