Diff: https://github.com/jdepoix/youtube-transcript-api/compare/refs/tags/v0.6.0...v0.6.1 Changelog: https://github.com/jdepoix/youtube-transcript-api/releases/tag/v0.6.1
47 lines
974 B
Nix
47 lines
974 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, requests
|
|
, mock
|
|
, httpretty
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "youtube-transcript-api";
|
|
version = "0.6.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jdepoix";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-7s2qzmfYkaQ7xAi/U+skOEVTAj2gp+2WnODu9k1ojJY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
httpretty
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"youtube_transcript_api"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API which allows you to get the transcripts/subtitles for a given YouTube video";
|
|
homepage = "https://github.com/jdepoix/youtube-transcript-api";
|
|
changelog = "https://github.com/jdepoix/youtube-transcript-api/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|