1{ lib
2, buildPythonPackage
3, fetchPypi
4, hypothesis
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "srt";
11 version = "3.5.2";
12
13 disabled = pythonOlder "2.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "7aa4ad5ce4126d3f53b3e7bc4edaa86653d0378bf1c0b1ab8c59f5ab41384450";
18 };
19
20 checkInputs = [
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}