prometheus-xmpp-alerts: 0.5.6 → 0.5.8

Adapted for upstream's pyproject migration.
This commit is contained in:
Jonathan Davies 2023-11-02 16:36:51 +00:00
parent 5350639d1d
commit 0acd1c038f

View file

@ -9,27 +9,18 @@
python3Packages.buildPythonApplication rec {
pname = "prometheus-xmpp-alerts";
version = "0.5.6";
version = "0.5.8";
format = "pyproject";
src = fetchFromGitHub {
owner = "jelmer";
repo = pname;
rev = "v${version}";
sha256 = "sha256-PwShGS1rbfZCK5OS6Cnn+mduOpWAD4fC69mcGB5GB1c=";
sha256 = "sha256-iwqcowwJktZQfdxykpsw/MweAPY0KF7ojVwvk1LP8a4=";
};
patches = [
# Required until https://github.com/jelmer/prometheus-xmpp-alerts/pull/33 is merged
# and contained in a release
(fetchpatch {
name = "Fix-outdated-entrypoint-definiton.patch";
url = "https://github.com/jelmer/prometheus-xmpp-alerts/commit/c41dd41dbd3c781b874bcf0708f6976e6252b621.patch";
hash = "sha256-G7fRLSXbkI5EDgGf4n9xSVs54IPD0ev8rTEFffRvLY0=";
})
];
postPatch = ''
substituteInPlace setup.cfg \
substituteInPlace pyproject.toml \
--replace "bs4" "beautifulsoup4"
'';
@ -46,6 +37,7 @@ python3Packages.buildPythonApplication rec {
]);
nativeCheckInputs = with python3Packages; [
setuptools
unittestCheckHook
pytz
];