biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / guessit / default.nix
blobc86ecb59ef33e867014cdfafddc4e5803389c0d2
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   python-dateutil,
6   babelfish,
7   rebulk,
8   pythonOlder,
9   importlib-resources,
10   py,
11   pytestCheckHook,
12   pytest-mock,
13   pytest-benchmark,
14   pyyaml,
17 buildPythonPackage rec {
18   pname = "guessit";
19   version = "3.8.0";
20   format = "setuptools";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-Zhn8u/mgUQ7IwsM3RMQlHK0FB7HVc9Bch13hftxe2+0=";
25   };
27   propagatedBuildInputs = [
28     rebulk
29     babelfish
30     python-dateutil
31   ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
33   nativeCheckInputs = [
34     py
35     pytestCheckHook
36     pytest-mock
37     pytest-benchmark
38     pyyaml
39   ];
41   pytestFlagsArray = [ "--benchmark-disable" ];
43   pythonImportsCheck = [ "guessit" ];
45   meta = with lib; {
46     description = "Python library that extracts as much information as possible from a video filename";
47     mainProgram = "guessit";
48     homepage = "https://guessit-io.github.io/guessit/";
49     changelog = "https://github.com/guessit-io/guessit/raw/v${version}/CHANGELOG.md";
50     license = licenses.lgpl3Only;
51     maintainers = [ ];
52   };