nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 873 B view raw
1{ 2 lib, 3 python3, 4 fetchPypi, 5 nixosTests, 6}: 7 8python3.pkgs.buildPythonApplication rec { 9 pname = "knot-exporter"; 10 version = "3.5.3"; 11 pyproject = true; 12 13 src = fetchPypi { 14 pname = "knot_exporter"; 15 inherit version; 16 hash = "sha256-sCmzYS6mjEUHomA25HRxJs2X+9Uv50ll4tqR2BAj0ro="; 17 }; 18 19 build-system = [ 20 python3.pkgs.hatchling 21 ]; 22 23 dependencies = with python3.pkgs; [ 24 libknot 25 prometheus-client 26 psutil 27 ]; 28 29 pythonImportsCheck = [ 30 "knot_exporter" 31 ]; 32 33 passthru.tests = { inherit (nixosTests.prometheus-exporters) knot; }; 34 35 meta = { 36 description = "Prometheus exporter for Knot DNS"; 37 homepage = "https://gitlab.nic.cz/knot/knot-dns/-/tree/master/python/knot_exporter"; 38 license = lib.licenses.gpl2Plus; 39 maintainers = with lib.maintainers; [ 40 ma27 41 hexa 42 ]; 43 mainProgram = "knot-exporter"; 44 }; 45}