1{ lib
2, buildPythonPackage
3, fetchPypi
4, hypothesis
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "srt";
11 version = "3.5.3";
12
13 disabled = pythonOlder "2.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-SIQxUEOk8HQP0fh47WyqN2rAbXDhNfMGptxEYy7tDMA=";
18 };
19
20 nativeCheckInputs = [
21 hypothesis
22 pytestCheckHook
23 ];
24
25 pythonImportsCheck = [ "srt" ];
26
27 meta = with lib; {
28 homepage = "https://github.com/cdown/srt";
29 description = "A tiny but featureful Python library for parsing, modifying, and composing SRT files";
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ friedelino ];
32 };
33}