504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
34 lines
693 B
Nix
34 lines
693 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hypothesis
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "srt";
|
|
version = "3.5.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "2.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-SIQxUEOk8HQP0fh47WyqN2rAbXDhNfMGptxEYy7tDMA=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "srt" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/cdown/srt";
|
|
description = "A tiny but featureful Python library for parsing, modifying, and composing SRT files";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ friedelino ];
|
|
};
|
|
}
|