Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 774 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, rtl-sdr 6, setuptools 7}: 8 9buildPythonPackage rec { 10 pname = "pyrtlsdr"; 11 version = "0.2.93"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "sha256-LeKbtOQDcIinjokBK8LMhLc9xFxgYIsot9kD9ikjuiY="; 16 }; 17 18 propagatedBuildInputs = [ setuptools ]; 19 20 postPatch = '' 21 sed "s|driver_files =.*|driver_files = ['${rtl-sdr}/lib/librtlsdr.so']|" -i rtlsdr/librtlsdr.py 22 ''; 23 24 # No tests that can be used. 25 doCheck = false; 26 27 meta = with lib; { 28 description = "Python wrapper for librtlsdr (a driver for Realtek RTL2832U based SDR's)"; 29 homepage = "https://github.com/roger-/pyrtlsdr"; 30 license = licenses.gpl3; 31 platforms = platforms.unix; 32 maintainers = with maintainers; [ bjornfor ]; 33 }; 34}