Skip to content

Commit

Permalink
python39Packages.guessit: 3.3.1 -> 3.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam authored and mkg20001 committed Nov 29, 2021
1 parent 458c351 commit 9f60331
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions pkgs/development/python-modules/guessit/default.nix
Original file line number Diff line number Diff line change
@@ -1,31 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest-runner
, python-dateutil
, babelfish
, rebulk
, pythonOlder
, importlib-resources
, pytestCheckHook
, pytest-mock
, pytest-benchmark
, pyyaml
}:

buildPythonPackage rec {
pname = "guessit";
version = "3.3.1";
version = "3.4.3";

src = fetchPypi {
inherit pname version;
sha256 = "8305e0086129614a8820a508303f98f56c584811489499bcc54a7ea6f1b0391e";
sha256 = "731e96e6a1f3b065d05accc8c19f35d4485d880b77ab8dc4b262cc353df294f7";
};

# Tests require more packages.
doCheck = false;
buildInputs = [ pytest-runner ];
propagatedBuildInputs = [
python-dateutil babelfish rebulk
];
rebulk
babelfish
python-dateutil
] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];

checkInputs = [ pytestCheckHook pytest-mock pytest-benchmark pyyaml ];

pytestFlagsArray = [ "--benchmark-disable" ];

pythonImportsCheck = [ "guessit" ];

meta = {
homepage = "https://pypi.python.org/pypi/guessit";
license = lib.licenses.lgpl3;
description = "A library for guessing information from video files";
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;
};
}

0 comments on commit 9f60331

Please sign in to comment.