mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #25884 from unaizalakain/init-pysrt
pysrt: init at 1.1.1
This commit is contained in:
commit
d81683d0a4
2 changed files with 33 additions and 0 deletions
31
pkgs/development/python-modules/pysrt/default.nix
Normal file
31
pkgs/development/python-modules/pysrt/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ stdenv
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, chardet
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
name = "pysrt-${version}";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "byroot";
|
||||
repo = "pysrt";
|
||||
rev = "v${version}";
|
||||
sha256 = "0rwjaf26885vxhxnas5d8zwasvj7x88y4y2pdivjd4vdcpqrqdjn";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
checkPhase = ''
|
||||
nosetests -v
|
||||
'';
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
|
@ -9122,6 +9122,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
pysrt = callPackage ../development/python-modules/pysrt { };
|
||||
|
||||
pytools = buildPythonPackage rec {
|
||||
name = "pytools-${version}";
|
||||
version = "2016.2.1";
|
||||
|
|
Loading…
Reference in a new issue