Unverified Commit 2f68ce7b authored by MidAutumnMoon's avatar MidAutumnMoon
Browse files

python312Packages.discid: use pyproject to fix build failure

parent ba8a0dcb
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -4,18 +4,23 @@
  libdiscid,
  buildPythonPackage,
  fetchPypi,
  setuptools,
}:

buildPythonPackage rec {
  pname = "discid";
  version = "1.3.0";
  format = "setuptools";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-cWChIRrD1qbYIT+4jdPXPjKr5eATNqWkyYWwgql9QzU=";
  };

  build-system = [
    setuptools
  ];

  patchPhase =
    let
      extension = stdenv.hostPlatform.extensions.sharedLibrary;