depot/third_party/nixpkgs/pkgs/development/python-modules/guessit/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

53 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
];
pytestFlagsArray = [ "--benchmark-disable" ];
pythonImportsCheck = [ "guessit" ];
meta = with lib; {
description = "A 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 = licenses.lgpl3Only;
maintainers = with maintainers; [ ];
};
}