33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
44 lines
996 B
Nix
44 lines
996 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python-dateutil
|
|
, babelfish
|
|
, rebulk
|
|
, pythonOlder
|
|
, importlib-resources
|
|
, py
|
|
, pytestCheckHook
|
|
, pytest-mock
|
|
, pytest-benchmark
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "guessit";
|
|
version = "3.5.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-eiaeOlfMBz5htWJZiT6rPFwC0a2Ky8iuLnjF6DnxELw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
rebulk
|
|
babelfish
|
|
python-dateutil
|
|
] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
|
|
|
|
nativeCheckInputs = [ py pytestCheckHook pytest-mock pytest-benchmark pyyaml ];
|
|
|
|
pytestFlagsArray = [ "--benchmark-disable" ];
|
|
|
|
pythonImportsCheck = [ "guessit" ];
|
|
|
|
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;
|
|
};
|
|
}
|