depot/third_party/nixpkgs/pkgs/development/python-modules/pytubefix/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

44 lines
958 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pytubefix";
version = "6.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "JuanBindez";
repo = "pytubefix";
rev = "refs/tags/v${version}";
hash = "sha256-FbmVQ+nt/WEwE5vRMo2610TO463CT8nCseqB30uXjSM=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# require network access
"tests/test_captions.py"
"tests/test_cli.py"
"tests/test_exceptions.py"
"tests/test_extract.py"
"tests/test_main.py"
"tests/test_query.py"
"tests/test_streams.py"
];
pythonImportsCheck = [ "pytubefix" ];
meta = {
homepage = "https://github.com/JuanBindez/pytubefix";
description = "Pytube fork with additional features and fixes";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ roshaen ];
};
}