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
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-benchmark
|
|
|
|
, pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "guessit";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "3.4.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "731e96e6a1f3b065d05accc8c19f35d4485d880b77ab8dc4b262cc353df294f7";
|
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 ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook pytest-mock pytest-benchmark pyyaml ];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|