2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
, babelfish
|
|
|
|
, rebulk
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
|
|
|
, importlib-resources
|
2023-01-20 10:41:00 +00:00
|
|
|
, py
|
2021-12-06 16:07:01 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-benchmark
|
|
|
|
, pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "guessit";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "3.5.0";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-eiaeOlfMBz5htWJZiT6rPFwC0a2Ky8iuLnjF6DnxELw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
rebulk
|
|
|
|
babelfish
|
|
|
|
python-dateutil
|
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ py pytestCheckHook pytest-mock pytest-benchmark pyyaml ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "guessit" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://doc.guessit.io/";
|
|
|
|
description = "A Python library that extracts as much information as possible from a video filename";
|
|
|
|
changelog = "https://github.com/guessit-io/guessit/raw/v${version}/CHANGELOG.md";
|
|
|
|
license = lib.licenses.lgpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|