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-03-04 12:14:45 +00:00
|
|
|
version = "3.7.1";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-LBjZgu5tsw211ZVXrdAySitJvzlAp1KUdRBjKitYo8E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
rebulk
|
|
|
|
babelfish
|
|
|
|
python-dateutil
|
2023-03-04 12:14:45 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
importlib-resources
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-03-04 12:14:45 +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
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "A Python library that extracts as much information as possible from a video filename";
|
2023-03-04 12:14:45 +00:00
|
|
|
homepage = "https://guessit-io.github.io/guessit/";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://github.com/guessit-io/guessit/raw/v${version}/CHANGELOG.md";
|
2023-03-04 12:14:45 +00:00
|
|
|
license = licenses.lgpl3Only;
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|