summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pysubs2/default.nix
blob: be619479e278d3855d328bfb718332699a928113 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pysubs2";
  version = "1.8.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "tkarabela";
    repo = "pysubs2";
    rev = version;
    hash = "sha256-fKSb7MfBHGft8Tp6excjfkVXKnHRER11X0QxbR1zD4I=";
  };

  nativeBuildInputs = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pysubs2" ];

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