Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pysubs2 / default.nix
blob3ae2de440750abcfe94311cfcf96c38b735a08f2
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , setuptools
6 }:
8 buildPythonPackage rec {
9   pname = "pysubs2";
10   version = "1.6.1";
11   format = "pyproject";
13   src = fetchFromGitHub {
14     owner = "tkarabela";
15     repo = pname;
16     rev =  version;
17     hash = "sha256-0bW9aB6ERRQK3psqeU0Siyi/8drEGisAp8UtTfOKlp0=";
18   };
20   nativeBuildInputs = [
21     setuptools
22   ];
24   nativeCheckInputs = [
25     pytestCheckHook
26   ];
28   pythonImportsCheck = [
29     "pysubs2"
30   ];
32   meta = with lib; {
33     homepage = "https://github.com/tkarabela/pysubs2";
34     description = "A Python library for editing subtitle files";
35     license = licenses.mit;
36     maintainers = with maintainers; [ Benjamin-L ];
37   };