From 741d9c276626842dfed92fa7aa605f3ff2a9ccc1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 17 Mar 2023 21:19:10 +0100 Subject: [PATCH] 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}";