1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/pysrt/default.nix

32 lines
595 B
Nix
Raw Normal View History

2017-05-18 10:16:40 +01:00
{ stdenv
, buildPythonPackage
2017-05-21 09:21:14 +01:00
, fetchFromGitHub
2017-05-18 10:16:40 +01:00
, chardet
2017-05-21 09:21:14 +01:00
, nose
2017-05-18 10:16:40 +01:00
}:
buildPythonPackage rec {
pname = "pysrt";
2020-01-28 03:01:28 +00:00
version = "1.1.2";
2017-05-18 10:16:40 +01:00
2017-05-21 09:21:14 +01:00
src = fetchFromGitHub {
owner = "byroot";
repo = "pysrt";
rev = "v${version}";
2020-01-28 03:01:28 +00:00
sha256 = "1f5hxyzlh5mdvvi52qapys9qcinffr6ghgivb6k4jxa92cbs3mfg";
2017-05-18 10:16:40 +01:00
};
checkInputs = [ nose ];
2017-05-21 09:21:14 +01:00
checkPhase = ''
nosetests -v
'';
2017-05-18 10:16:40 +01:00
propagatedBuildInputs = [ chardet ];
meta = with stdenv.lib; {
homepage = https://github.com/byroot/pysrt;
license = licenses.gpl3;
description = "Python library used to edit or create SubRip files";
};
}