@@ -1,31 +1,42 @@
11{ lib
22, buildPythonPackage
33, fetchPypi
4−, pytest-runner
54, python-dateutil
65, babelfish
76, rebulk
7+, pythonOlder
8+, importlib-resources
9+, pytestCheckHook
10+, pytest-mock
11+, pytest-benchmark
12+, pyyaml
813}:
914
1015buildPythonPackage rec {
1116 pname = "guessit";
12− version = "3.3.1";
17+ version = "3.4.3";
1318
1419 src = fetchPypi {
1520 inherit pname version;
16− sha256 = "8305e0086129614a8820a508303f98f56c584811489499bcc54a7ea6f1b0391e";
21+ sha256 = "731e96e6a1f3b065d05accc8c19f35d4485d880b77ab8dc4b262cc353df294f7";
1722 };
1823
19− # Tests require more packages.
20− doCheck = false;
21− buildInputs = [ pytest-runner ];
2224 propagatedBuildInputs = [
23− python-dateutil babelfish rebulk
24− ];
25+ rebulk
26+ babelfish
27+ python-dateutil
28+ ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
29+
30+ checkInputs = [ pytestCheckHook pytest-mock pytest-benchmark pyyaml ];
31+
32+ pytestFlagsArray = [ "--benchmark-disable" ];
33+
34+ pythonImportsCheck = [ "guessit" ];
2535
2636 meta = {
27− homepage = "https://pypi.python.org/pypi/guessit";
28− license = lib.licenses.lgpl3;
29− description = "A library for guessing information from video files";
37+ homepage = "https://doc.guessit.io/";
38+ description = "A Python library that extracts as much information as possible from a video filename";
39+ changelog = "https://github.com/guessit-io/guessit/raw/v${version}/CHANGELOG.md";
40+ license = lib.licenses.lgpl3Only;
3041 };
3142}