blob: edb17bc813fd1035d2b6aa5e7498d465e2a6d6ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, future
, ipython
, numpy
, pyserial
, pyusb
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "rfcat";
version = "1.9.7";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "atlas0fd00m";
repo = "rfcat";
rev = "refs/tags/v${version}";
hash = "sha256-VOLA/ZZLazW7u0VYkAHzDh4aaHGr3u09bKVOkhYk6Fk=";
};
propagatedBuildInputs = [
future
ipython
numpy
pyserial
pyusb
];
postInstall = lib.optionalString stdenv.hostPlatform.isLinux ''
mkdir -p $out/etc/udev/rules.d
cp etc/udev/rules.d/20-rfcat.rules $out/etc/udev/rules.d
'';
nativeCheckInputs = [
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}";
};
}
|