Commit 82260839 authored by nicoo's avatar nicoo
Browse files

pythonPackages.pysimplesoap: simplify using `fetchDebianPatch`

This can serve as both a first example, and confirmation the fetcher works.
parent 741ed30e
Loading
Loading
Loading
Loading
+19 −23
Original line number Diff line number Diff line
{ lib
, fetchpatch
, fetchDebianPatch
, fetchPypi
, buildPythonPackage
, m2crypto
@@ -20,14 +20,10 @@ buildPythonPackage rec {
    m2crypto
  ];

  patches =
    let
      debianRevision = "5";  # The Debian package revision we get patches from
      fetchDebianPatch = { name, hash }: fetchpatch {
        url = "https://salsa.debian.org/python-team/packages/pysimplesoap/-/raw/debian/${version}-${debianRevision}/debian/patches/${name}.patch";
        inherit hash;
      };
    in map fetchDebianPatch [
  patches = map (args: fetchDebianPatch ({
    inherit pname version;
    debianRevision = "5";
  } // args)) [
    # Merged upstream: f5f96210e1483f81cb5c582a6619e3ec4b473027
    { name = "Add-quotes-to-SOAPAction-header-in-SoapClient";
      hash = "sha256-xA8Wnrpr31H8wy3zHSNfezFNjUJt1HbSXn3qUMzeKc0="; }