about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pysubs2/default.nix
blob: bd17cd3695355d24516d9ed3e820ee5860853aaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, setuptools
}:

buildPythonPackage rec {
  pname = "pysubs2";
  version = "1.6.1";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "tkarabela";
    repo = pname;
    rev =  version;
    hash = "sha256-0bW9aB6ERRQK3psqeU0Siyi/8drEGisAp8UtTfOKlp0=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "pysubs2"
  ];

  meta = with lib; {
    homepage = "https://github.com/tkarabela/pysubs2";
    description = "A Python library for editing subtitle files";
    mainProgram = "pysubs2";
    license = licenses.mit;
    maintainers = with maintainers; [ Benjamin-L ];
  };
}