Merge pull request #147350 from fabaff/fix-rflink
python3Packages.rflink: add patch to support async_timeout> 4
This commit is contained in:
commit
8ebfa5b8e5
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, async-timeout
|
||||
, docopt
|
||||
, pyserial
|
||||
|
@ -12,6 +13,7 @@
|
|||
buildPythonPackage rec {
|
||||
pname = "rflink";
|
||||
version = "0.0.58";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aequitas";
|
||||
|
@ -20,11 +22,6 @@ buildPythonPackage rec {
|
|||
sha256 = "1zab55lsw419gg0jfrl69ap6128vbi3wdmg5z7qin65ijpjdhasc";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "version=version_from_git()" "version='${version}'"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-timeout
|
||||
docopt
|
||||
|
@ -37,7 +34,23 @@ buildPythonPackage rec {
|
|||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "rflink.protocol" ];
|
||||
patches = [
|
||||
# Remove loop, https://github.com/aequitas/python-rflink/pull/61
|
||||
(fetchpatch {
|
||||
name = "remove-loop.patch";
|
||||
url = "https://github.com/aequitas/python-rflink/commit/777e19b5bde3398df5b8f142896c34a01ae18d52.patch";
|
||||
sha256 = "sJmihxY3fNSfZVFhkvQ/+9gysQup/1jklKDMyDDLOs8=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "version=version_from_git()" "version='${version}'"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"rflink.protocol"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library and CLI tools for interacting with RFlink 433MHz transceiver";
|
||||
|
|
Loading…
Reference in a new issue