Files
nixpkgs/pkgs/development/python-modules/guessit/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
python-dateutil,
babelfish,
rebulk,
pythonOlder,
importlib-resources,
py,
pytestCheckHook,
pytest-mock,
pytest-benchmark,
pyyaml,
}:
buildPythonPackage rec {
pname = "guessit";
version = "3.8.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-Zhn8u/mgUQ7IwsM3RMQlHK0FB7HVc9Bch13hftxe2+0=";
};
propagatedBuildInputs = [
rebulk
babelfish
python-dateutil
]
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
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";
mainProgram = "guessit";
homepage = "https://guessit-io.github.io/guessit/";
changelog = "https://github.com/guessit-io/guessit/raw/v${version}/CHANGELOG.md";
license = lib.licenses.lgpl3Only;
maintainers = [ ];
};
}