mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
babelfish,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hatchling,
|
|
py,
|
|
pytest-benchmark,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
pyyaml,
|
|
rebulk,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "guessit";
|
|
version = "4.4.0";
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "guessit";
|
|
inherit (finalAttrs) version;
|
|
hash = "sha256-zKLBns2HLHXufry9wRB19a6ISILsCtZ/dCw9JfLUe+s=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
rebulk
|
|
babelfish
|
|
python-dateutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
py
|
|
pytestCheckHook
|
|
pytest-mock
|
|
pytest-benchmark
|
|
pyyaml
|
|
];
|
|
|
|
pytestFlags = [ "--benchmark-disable" ];
|
|
|
|
pythonImportsCheck = [ "guessit" ];
|
|
|
|
meta = {
|
|
description = "Python library that extracts as much information as possible from a video filename";
|
|
homepage = "https://guessit-io.github.io/guessit/";
|
|
changelog = "https://github.com/guessit-io/guessit/raw/v${finalAttrs.version}/CHANGELOG.md";
|
|
license = lib.licenses.lgpl3Only;
|
|
maintainers = [ ];
|
|
mainProgram = "guessit";
|
|
};
|
|
})
|