nixpkgs/pkgs/development/python-modules/pysrt/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

32 lines
603 B
Nix

{ stdenv
, buildPythonApplication
, fetchFromGitHub
, chardet
, nose
}:
buildPythonApplication rec {
pname = "pysrt";
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";
};
}