Commit ce05a72d authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python3Packages.netbox-plugin-prometheus-sd: 1.2.0 -> 1.3.0

parent 10290c32
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -10,19 +10,17 @@

buildPythonPackage rec {
  pname = "netbox-plugin-prometheus-sd";
  version = "1.2.0";
  version = "1.3.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "FlxPeters";
    repo = "netbox-plugin-prometheus-sd";
    tag = "v${version}";
    hash = "sha256-L5kJnaY9gKpsWAgwkjVRQQauL2qViinqk7rHLXTVzT4=";
    hash = "sha256-2SVfWkw6/AkDihWp9chU8rTqLiSn9ax4uLaK1xydfGM=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'version = "0.0.0"' 'version = "${version}"'
    substituteInPlace netbox_prometheus_sd/__init__.py \
      --replace-fail "from extras.plugins import PluginConfig" "from netbox.plugins import PluginConfig"
  '';