{ final, prev, flakeInputs, sources, ... }: let inherit (prev.stdenv.targetPlatform) system; in { smartprom = flakeInputs.mach-nix.lib.${system}.buildPythonPackage rec { inherit (sources.smartprom) src pname version; ignoreDataOutdated = true; prePatch = '' mkdir smartprom mv smartprom.py smartprom/__main__.py echo >> smartprom/__init__.py substituteAll ${./setup.py} ./setup.py ''; requirements = '' prometheus_client ''; }; }