Unverified Commit 1e570426 authored by Mynacol's avatar Mynacol Committed by Sandro Jäckel
Browse files

yt-dlp-ejs: 0.3.1 -> 0.3.2

This replaces the package-lock.json file in nixpkgs with upstream pnpm and its lockfile.

Also, rollup requires node, so we cannot replace nodejs with deno in
this build script.
parent 55e54fc2
Loading
Loading
Loading
Loading
+12 −17
Original line number Diff line number Diff line
@@ -2,37 +2,32 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchNpmDeps,
  hatch-vcs,
  hatchling,
  nodejs,
  npmHooks,
  pnpm,
}:

buildPythonPackage rec {
  pname = "yt-dlp-ejs";
  version = "0.3.1";
  version = "0.3.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "yt-dlp";
    repo = "ejs";
    tag = version;
    hash = "sha256-PoZ7qmrf8en254im2D7fWy9jYiaJwFpq6ZXZP9ouOOQ=";
    hash = "sha256-o6qf4rfj42mCyvCBb+wyJmZKg3Q+ojsqbCcBfIJnTPg=";
  };

  postPatch = ''
    # remove when upstream has a lock file we support https://github.com/yt-dlp/ejs/issues/29
    cp ${./package-lock.json} package-lock.json

    # we already ran npm install
    substituteInPlace hatch_build.py \
      --replace-fail 'subprocess.run(["npm", "install"], check=True, shell=requires_shell)' ""
  '';

  npmDeps = fetchNpmDeps {
    inherit src postPatch;
    hash = "sha256-2Xzetr2pb8J2w+ghfoTVP6oZTeVbHV7EcovwxElnUbA=";
  pnpmDeps = pnpm.fetchDeps {
    inherit
      pname
      version
      src
      ;
    fetcherVersion = 2;
    hash = "sha256-3hhwKUzfdlKmth4uRlfBSdxEOIfhAVaq2PZIOHWGWiM=";
  };

  build-system = [
@@ -42,7 +37,7 @@ buildPythonPackage rec {

  nativeBuildInputs = [
    nodejs
    npmHooks.npmConfigHook
    pnpm.configHook
  ];

  meta = {
+0 −3186

File deleted.

Preview size limit exceeded, changes collapsed.