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:
parent
f04dbdd29e
commit
87354cb640
|
@ -3,32 +3,19 @@
|
|||
, fetchPypi
|
||||
, fetchpatch
|
||||
, rtl-sdr
|
||||
, m2r
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyrtlsdr";
|
||||
version = "0.2.7";
|
||||
version = "0.2.93";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7942fe2e7821d09206002ea7e820e694094b3f964885123eb6eee1167f39b8da";
|
||||
sha256 = "sha256-LeKbtOQDcIinjokBK8LMhLc9xFxgYIsot9kD9ikjuiY=";
|
||||
};
|
||||
|
||||
# Replace pypandoc dependency by m2r
|
||||
# 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 ];
|
||||
propagatedBuildInputs = [ setuptools ];
|
||||
|
||||
postPatch = ''
|
||||
sed "s|driver_files =.*|driver_files = ['${rtl-sdr}/lib/librtlsdr.so']|" -i rtlsdr/librtlsdr.py
|
||||
|
|
Loading…
Reference in a new issue