1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-05 07:12:34 +03:00
nixpkgs/pkgs/development/python-modules/guessit/default.nix

43 lines
972 B
Nix
Raw Normal View History

2017-05-01 10:00:03 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, python-dateutil
2017-05-01 10:00:03 +02:00
, babelfish
, rebulk
, pythonOlder
, importlib-resources
, pytestCheckHook
, pytest-mock
, pytest-benchmark
, pyyaml
2017-05-01 10:00:03 +02:00
}:
buildPythonPackage rec {
pname = "guessit";
version = "3.4.3";
2017-05-01 10:00:03 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "731e96e6a1f3b065d05accc8c19f35d4485d880b77ab8dc4b262cc353df294f7";
2017-05-01 10:00:03 +02:00
};
propagatedBuildInputs = [
rebulk
babelfish
python-dateutil
] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
checkInputs = [ pytestCheckHook pytest-mock pytest-benchmark pyyaml ];
pytestFlagsArray = [ "--benchmark-disable" ];
pythonImportsCheck = [ "guessit" ];
2017-05-01 10:00:03 +02:00
meta = {
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;
2017-05-01 10:00:03 +02:00
};
}