mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatch-vcs,
|
|
hatchling,
|
|
nodejs,
|
|
fetchPnpmDeps,
|
|
pnpmConfigHook,
|
|
pnpm_10,
|
|
}:
|
|
let
|
|
pnpm = pnpm_10;
|
|
in
|
|
buildPythonPackage rec {
|
|
pname = "yt-dlp-ejs";
|
|
version = "0.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yt-dlp";
|
|
repo = "ejs";
|
|
tag = version;
|
|
hash = "sha256-+tOA9sPk0BGJHFQCoAC8y5Bz3UcjgIPDQ8WDPkRlW5k=";
|
|
};
|
|
|
|
pnpmDeps = fetchPnpmDeps {
|
|
inherit
|
|
pname
|
|
version
|
|
src
|
|
pnpm
|
|
;
|
|
fetcherVersion = 3;
|
|
hash = "sha256-4qMOAl9Dbe1oYSRIeP7oPcV/+P8NLdIYvSNxaz0h+Z0=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-vcs
|
|
hatchling
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
nodejs
|
|
pnpmConfigHook
|
|
pnpm
|
|
];
|
|
|
|
pythonImportsCheck = [ "yt_dlp_ejs" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/yt-dlp/ejs/releases/tag/${version}";
|
|
description = "External JavaScript for yt-dlp supporting many runtimes";
|
|
homepage = "https://github.com/yt-dlp/ejs/";
|
|
license = with lib.licenses; [
|
|
unlicense
|
|
mit
|
|
isc
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
SuperSandro2000
|
|
_4evy
|
|
];
|
|
};
|
|
}
|