mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
python3Packages.rflink: 0.0.66 -> 0.0.67 (#412137)
This commit is contained in:
commit
7b2309ba5f
1 changed files with 9 additions and 17 deletions
|
@ -2,35 +2,31 @@
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
async-timeout,
|
|
||||||
docopt,
|
docopt,
|
||||||
pyserial,
|
pyserial,
|
||||||
pyserial-asyncio,
|
pyserial-asyncio-fast,
|
||||||
setuptools,
|
setuptools,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
pythonOlder,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "rflink";
|
pname = "rflink";
|
||||||
version = "0.0.66";
|
version = "0.0.67";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aequitas";
|
owner = "aequitas";
|
||||||
repo = "python-rflink";
|
repo = "python-rflink";
|
||||||
tag = version;
|
tag = version;
|
||||||
hash = "sha256-n6VLa0xX1qewMS7Kv+kiitezWRbRvDJRNuOmA7IV6u0=";
|
hash = "sha256-LAmn9/l+J++CvRa5gypuoQ41mZVSoVqbPpbqVSP6CN4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [ setuptools ];
|
||||||
async-timeout
|
|
||||||
|
dependencies = [
|
||||||
docopt
|
docopt
|
||||||
pyserial
|
pyserial
|
||||||
pyserial-asyncio
|
pyserial-asyncio-fast
|
||||||
setuptools
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
@ -38,10 +34,6 @@ buildPythonPackage rec {
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "version=version_from_git()" "version='${version}'"
|
--replace "version=version_from_git()" "version='${version}'"
|
||||||
|
|
||||||
substituteInPlace rflinkproxy/__main__.py --replace-fail \
|
|
||||||
"with async_timeout.timeout(CONNECTION_TIMEOUT):" \
|
|
||||||
"async with async_timeout.timeout(CONNECTION_TIMEOUT):"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "rflink.protocol" ];
|
pythonImportsCheck = [ "rflink.protocol" ];
|
||||||
|
@ -49,7 +41,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Library and CLI tools for interacting with RFlink 433MHz transceiver";
|
description = "Library and CLI tools for interacting with RFlink 433MHz transceiver";
|
||||||
homepage = "https://github.com/aequitas/python-rflink";
|
homepage = "https://github.com/aequitas/python-rflink";
|
||||||
changelog = "https://github.com/aequitas/python-rflink/releases/tag/${version}";
|
changelog = "https://github.com/aequitas/python-rflink/releases/tag/${src.tag}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ dotlambda ];
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue