Unverified Commit 4e5346d0 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #221719 from mweinelt/adblock-version

python310Packages.adblock: Substitute bogus version
parents ec744965 208f77f2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -39,6 +39,11 @@ buildPythonPackage rec {
    })
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "0.0.0" "${version}"
  '';

  cargoDeps = rustPlatform.fetchCargoTarball {
    inherit src;
    name = "${pname}-${version}";
@@ -85,6 +90,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Python wrapper for Brave's adblocking library";
    homepage = "https://github.com/ArniDagur/python-adblock/";
    changelog = "https://github.com/ArniDagur/python-adblock/blob/${version}/CHANGELOG.md";
    maintainers = with maintainers; [ dotlambda ];
    license = with licenses; [ asl20 /* or */ mit ];
  };