3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #152584 from fabaff/fix-karton-dashboard

python3Packages.karton-dashboard: update substituteInPlace
This commit is contained in:
Fabian Affolter 2021-12-29 22:53:49 +01:00 committed by GitHub
commit 65b9b60019
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View file

@ -5,6 +5,7 @@
, karton-core
, mistune
, prometheus-client
, pythonOlder
}:
buildPythonPackage rec {
@ -12,6 +13,8 @@ buildPythonPackage rec {
version = "1.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
@ -29,7 +32,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace requirements.txt \
--replace "Flask==1.1.1" "Flask" \
--replace "prometheus-client==0.10.0" "prometheus-client"
--replace "prometheus_client==0.11.0" "prometheus_client"
'';
# Project has no tests. pythonImportsCheck requires MinIO configuration

View file

@ -2,11 +2,15 @@
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "prometheus-client";
version = "0.12.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "prometheus";
@ -19,11 +23,14 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "prometheus_client" ];
pythonImportsCheck = [
"prometheus_client"
];
meta = with lib; {
description = "Prometheus instrumentation library for Python applications";
homepage = "https://github.com/prometheus/client_python";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}