Merge pull request #221719 from mweinelt/adblock-version

python310Packages.adblock: Substitute bogus version
This commit is contained in:
Fabian Affolter
2023-03-19 11:20:02 +01:00
committed by GitHub
@@ -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 ];
};