Merge pull request #35204 from dotlambda/pypandoc

pythonPackages.pypandoc: mark as broken

authored by Frederik Rietdijk and committed by GitHub 125a7211 6f497c65

+19 -6
+2 -1
pkgs/development/python-modules/pypandoc/default.nix
··· 4 4 buildPythonPackage rec { 5 5 pname = "pypandoc"; 6 6 version = "1.4"; 7 - name = "${pname}-${version}"; 8 7 9 8 src = fetchPypi { 10 9 inherit pname version; ··· 28 27 homepage = https://github.com/bebraw/pypandoc; 29 28 license = licenses.mit; 30 29 maintainers = with maintainers; [ bennofs ]; 30 + 31 + broken = true; # incompatible with pandoc v2 31 32 }; 32 33 }
+17 -5
pkgs/development/python-modules/pyrtlsdr/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 + , fetchpatch 4 5 , rtl-sdr 5 - , pypandoc 6 - , pandoc 6 + , m2r 7 7 }: 8 8 9 9 buildPythonPackage rec { 10 10 pname = "pyrtlsdr"; 11 11 version = "0.2.7"; 12 - name = "${pname}-${version}"; 13 12 14 13 src = fetchPypi { 15 14 inherit pname version; 16 15 sha256 = "7942fe2e7821d09206002ea7e820e694094b3f964885123eb6eee1167f39b8da"; 17 16 }; 18 17 19 - buildInputs = [ pypandoc pandoc ]; 18 + # Replace pypandoc dependency by m2r 19 + # See https://github.com/roger-/pyrtlsdr/pull/78 20 + patches = [ 21 + (fetchpatch { 22 + url = "${meta.homepage}/commit/2b7df0b.patch"; 23 + sha256 = "04h5z80969jgdgrf98b9ps56sybms09xacvmj6rwcfrmanli8rgf"; 24 + }) 25 + (fetchpatch { 26 + url = "${meta.homepage}/commit/97dc3d0.patch"; 27 + sha256 = "1v1j0n91jwpsiam2j34yj71z4h39cvk4gi4565zgjrzsq6xr93i0"; 28 + }) 29 + ]; 30 + 31 + nativeBuildInputs = [ m2r ]; 20 32 21 33 postPatch = '' 22 34 sed "s|driver_files =.*|driver_files = ['${rtl-sdr}/lib/librtlsdr.so']|" -i rtlsdr/librtlsdr.py ··· 31 43 license = licenses.gpl3; 32 44 platforms = platforms.linux; 33 45 maintainers = with maintainers; [ bjornfor ]; 34 - }; 46 + }; 35 47 }