2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-runner
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
, babelfish
|
|
|
|
, rebulk
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "guessit";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "3.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "8305e0086129614a8820a508303f98f56c584811489499bcc54a7ea6f1b0391e";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests require more packages.
|
|
|
|
doCheck = false;
|
2021-07-24 12:14:16 +00:00
|
|
|
buildInputs = [ pytest-runner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil babelfish rebulk
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://pypi.python.org/pypi/guessit";
|
|
|
|
license = lib.licenses.lgpl3;
|
|
|
|
description = "A library for guessing information from video files";
|
|
|
|
};
|
|
|
|
}
|