python3Packages.subliminal: fix build, python3Packages.knowit: init at 0.5.11 (#437373)

Changed files
+113 -2
pkgs
development
python-modules
knowit
subliminal
top-level
+87
pkgs/development/python-modules/knowit/default.nix
···
+
{
+
lib,
+
buildPythonPackage,
+
fetchFromGitHub,
+
fetchzip,
+
+
# build-system
+
poetry-core,
+
+
# dependencies
+
babelfish,
+
enzyme,
+
pymediainfo,
+
pyyaml,
+
trakit,
+
pint,
+
+
# nativeCheckInputs
+
pytestCheckHook,
+
ffmpeg,
+
mediainfo,
+
mkvtoolnix,
+
requests,
+
}:
+
+
buildPythonPackage rec {
+
pname = "knowit";
+
version = "0.5.11";
+
pyproject = true;
+
+
src = fetchFromGitHub {
+
owner = "ratoaq2";
+
repo = "knowit";
+
tag = version;
+
hash = "sha256-JqzCLdXEWZyvqXpeTJRW0zhY+wVcHLuBYrJbuSqfgkg=";
+
};
+
+
matroska_test_zip = fetchzip {
+
url = "http://downloads.sourceforge.net/project/matroska/test_files/matroska_test_w1_1.zip";
+
hash = "sha256-X8gIfDj2iP043kjO3yqxuIgn8mZMX7XaqzhQ7CTLUhc=";
+
stripRoot = false;
+
};
+
+
postPatch = ''
+
mkdir -p tests/data/videos
+
cp ${matroska_test_zip}/*.mkv tests/data/videos/
+
'';
+
+
build-system = [
+
poetry-core
+
];
+
+
dependencies = [
+
babelfish
+
enzyme
+
pymediainfo
+
pyyaml
+
trakit
+
];
+
+
optional-dependencies = {
+
pint = [
+
pint
+
];
+
};
+
+
pythonImportsCheck = [
+
"knowit"
+
];
+
+
nativeCheckInputs = [
+
pytestCheckHook
+
ffmpeg
+
mediainfo
+
mkvtoolnix
+
requests
+
];
+
+
meta = {
+
changelog = "https://github.com/ratoaq2/knowit/releases/tag/${src.tag}";
+
description = "Extract metadata from media files";
+
homepage = "https://github.com/ratoaq2/knowit";
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ iynaix ];
+
mainProgram = "knowit";
+
};
+
}
+24 -2
pkgs/development/python-modules/subliminal/default.nix
···
fetchFromGitHub,
pythonOlder,
+
# build-system
+
hatchling,
+
hatch-vcs,
+
+
# dependencies
babelfish,
beautifulsoup4,
chardet,
click,
click-option-group,
+
defusedxml,
dogpile-cache,
enzyme,
guessit,
+
knowit,
srt,
pysubs2,
rarfile,
requests,
platformdirs,
-
setuptools,
stevedore,
tomli,
+
tomlkit,
+
# nativeCheckInputs
+
colorama,
+
pypandoc,
pytestCheckHook,
pytest-cov-stub,
pytest-xdist,
···
hash = "sha256-eAXzD6diep28wCZjWLOZpOX1bnakEldhs2LX5CPu5OI=";
};
-
build-system = [ setuptools ];
+
build-system = [
+
hatchling
+
hatch-vcs
+
];
propagatedBuildInputs = [
babelfish
···
chardet
click
click-option-group
+
defusedxml
dogpile-cache
enzyme
guessit
+
knowit
srt
pysubs2
rarfile
···
platformdirs
stevedore
tomli
+
tomlkit
];
nativeCheckInputs = [
+
colorama
+
pypandoc
pytestCheckHook
pytest-cov-stub
pytest-xdist
···
disabledTests = [
# Tests require network access
+
"integration"
+
"test_cli_cache"
+
"test_cli_download"
+
"test_is_supported_archive"
"test_refine"
"test_scan"
"test_hash"
+2
pkgs/top-level/python-packages.nix
···
knot-floer-homology = callPackage ../development/python-modules/knot-floer-homology { };
+
knowit = callPackage ../development/python-modules/knowit { };
+
knx-frontend = callPackage ../development/python-modules/knx-frontend { };
kokoro = callPackage ../development/python-modules/kokoro { };