Merge pull request #114914 from trepetti/rfcat

pythonPackages.rfcat: init at 1.9.5
This commit is contained in:
Sandro 2021-03-03 18:39:42 +01:00 committed by GitHub
commit 1c67e5a358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, future
, ipython
, numpy
, pyserial
, pyusb
, hostPlatform
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "rfcat";
version = "1.9.5";
src = fetchFromGitHub {
owner = "atlas0fd00m";
repo = "rfcat";
rev = "v${version}";
sha256 = "1mmr7g7ma70sk6vl851430nqnd7zxsk7yb0xngwrdx9z7fbz2ck0";
};
propagatedBuildInputs = [
future
ipython
numpy
pyserial
pyusb
];
postInstall = lib.optionalString hostPlatform.isLinux ''
mkdir -p $out/etc/udev/rules.d
cp etc/udev/rules.d/20-rfcat.rules $out/etc/udev/rules.d
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "rflib" ];
meta = with lib; {
description = "Swiss Army knife of sub-GHz ISM band radio";
homepage = "https://github.com/atlas0fd00m/rfcat";
license = licenses.bsd3;
maintainers = with maintainers; [ trepetti ];
changelog = "https://github.com/atlas0fd00m/rfcat/releases/tag/v${version}";
};
}

View File

@ -6923,6 +6923,8 @@ in {
rfc7464 = callPackage ../development/python-modules/rfc7464 { };
rfcat = callPackage ../development/python-modules/rfcat { };
rhpl = disabledIf isPy3k (callPackage ../development/python-modules/rhpl { });
rich = callPackage ../development/python-modules/rich { };