Merge pull request #128099 from dotlambda/rflink-init
This commit is contained in:
commit
b03bf67f6f
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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -695,7 +695,7 @@
|
||||||
"repetier" = ps: with ps; [ ]; # missing inputs: pyrepetier
|
"repetier" = ps: with ps; [ ]; # missing inputs: pyrepetier
|
||||||
"rest" = ps: with ps; [ jsonpath xmltodict ];
|
"rest" = ps: with ps; [ jsonpath xmltodict ];
|
||||||
"rest_command" = ps: with ps; [ ];
|
"rest_command" = ps: with ps; [ ];
|
||||||
"rflink" = ps: with ps; [ ]; # missing inputs: rflink
|
"rflink" = ps: with ps; [ rflink ];
|
||||||
"rfxtrx" = ps: with ps; [ ]; # missing inputs: pyRFXtrx
|
"rfxtrx" = ps: with ps; [ ]; # missing inputs: pyRFXtrx
|
||||||
"ring" = ps: with ps; [ ha-ffmpeg ring-doorbell ];
|
"ring" = ps: with ps; [ ha-ffmpeg ring-doorbell ];
|
||||||
"ripple" = ps: with ps; [ ]; # missing inputs: python-ripple-api
|
"ripple" = ps: with ps; [ ]; # missing inputs: python-ripple-api
|
||||||
|
|
|
@ -603,6 +603,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||||
"remote"
|
"remote"
|
||||||
"rest"
|
"rest"
|
||||||
"rest_command"
|
"rest_command"
|
||||||
|
"rflink"
|
||||||
"ring"
|
"ring"
|
||||||
"risco"
|
"risco"
|
||||||
"rituals_perfume_genie"
|
"rituals_perfume_genie"
|
||||||
|
|
|
@ -7502,6 +7502,8 @@ in {
|
||||||
|
|
||||||
rfcat = callPackage ../development/python-modules/rfcat { };
|
rfcat = callPackage ../development/python-modules/rfcat { };
|
||||||
|
|
||||||
|
rflink = callPackage ../development/python-modules/rflink { };
|
||||||
|
|
||||||
rich = callPackage ../development/python-modules/rich { };
|
rich = callPackage ../development/python-modules/rich { };
|
||||||
|
|
||||||
rig = callPackage ../development/python-modules/rig { };
|
rig = callPackage ../development/python-modules/rig { };
|
||||||
|
|
Loading…
Reference in a new issue