14 buildPythonPackage rec {
17 format = "setuptools";
19 disabled = pythonOlder "3.7";
21 src = fetchFromGitHub {
23 repo = "python-rflink";
24 rev = "refs/tags/${version}";
25 hash = "sha256-n6VLa0xX1qewMS7Kv+kiitezWRbRvDJRNuOmA7IV6u0=";
28 propagatedBuildInputs = [
36 nativeCheckInputs = [ pytestCheckHook ];
39 substituteInPlace setup.py \
40 --replace "version=version_from_git()" "version='${version}'"
43 pythonImportsCheck = [ "rflink.protocol" ];
46 description = "Library and CLI tools for interacting with RFlink 433MHz transceiver";
47 homepage = "https://github.com/aequitas/python-rflink";
48 changelog = "https://github.com/aequitas/python-rflink/releases/tag/${version}";
49 license = licenses.mit;
50 maintainers = with maintainers; [ dotlambda ];