From 741d9c276626842dfed92fa7aa605f3ff2a9ccc1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 17 Mar 2023 21:19:10 +0100 Subject: [PATCH 1/2] python310Packages.adblock: Substitute bogus version The upstream sets 0.0.0 as the version in pyprojecy.toml with no indication, how the version gets set dynamically. --- pkgs/development/python-modules/adblock/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/adblock/default.nix b/pkgs/development/python-modules/adblock/default.nix index 7dfe54fddbc4..e4a0ede52d68 100644 --- a/pkgs/development/python-modules/adblock/default.nix +++ b/pkgs/development/python-modules/adblock/default.nix @@ -39,6 +39,11 @@ buildPythonPackage rec { }) ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace "0.0.0" "${version}" + ''; + cargoDeps = rustPlatform.fetchCargoTarball { inherit src; name = "${pname}-${version}"; From 208f77f2afdc97fac41cbf39c426ff81e2344f35 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 18 Mar 2023 17:42:52 +0100 Subject: [PATCH 2/2] python310Packages.adblock: add changelog to meta --- pkgs/development/python-modules/adblock/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/adblock/default.nix b/pkgs/development/python-modules/adblock/default.nix index e4a0ede52d68..87f42fbd35b6 100644 --- a/pkgs/development/python-modules/adblock/default.nix +++ b/pkgs/development/python-modules/adblock/default.nix @@ -90,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 ]; };