3
0
Fork 0
forked from mirrors/nixpkgs

pyrtlsdr: 0.2.7 -> 0.2.93

This removes the need for a patch that was used before, and removes the
dependency on the m2r package which is broken
This commit is contained in:
Alex Auvolat 2023-06-03 09:06:39 +02:00
parent f04dbdd29e
commit 87354cb640

View file

@ -3,32 +3,19 @@
, fetchPypi , fetchPypi
, fetchpatch , fetchpatch
, rtl-sdr , rtl-sdr
, m2r , setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyrtlsdr"; pname = "pyrtlsdr";
version = "0.2.7"; version = "0.2.93";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "7942fe2e7821d09206002ea7e820e694094b3f964885123eb6eee1167f39b8da"; sha256 = "sha256-LeKbtOQDcIinjokBK8LMhLc9xFxgYIsot9kD9ikjuiY=";
}; };
# Replace pypandoc dependency by m2r propagatedBuildInputs = [ setuptools ];
# See https://github.com/roger-/pyrtlsdr/pull/78
patches = [
(fetchpatch {
url = "${meta.homepage}/commit/2b7df0b.patch";
sha256 = "04h5z80969jgdgrf98b9ps56sybms09xacvmj6rwcfrmanli8rgf";
})
(fetchpatch {
url = "${meta.homepage}/commit/97dc3d0.patch";
sha256 = "1v1j0n91jwpsiam2j34yj71z4h39cvk4gi4565zgjrzsq6xr93i0";
})
];
nativeBuildInputs = [ m2r ];
postPatch = '' postPatch = ''
sed "s|driver_files =.*|driver_files = ['${rtl-sdr}/lib/librtlsdr.so']|" -i rtlsdr/librtlsdr.py sed "s|driver_files =.*|driver_files = ['${rtl-sdr}/lib/librtlsdr.so']|" -i rtlsdr/librtlsdr.py