mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
32 lines
593 B
Nix
32 lines
593 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, chardet
|
|
, nose
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysrt";
|
|
version = "1.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "byroot";
|
|
repo = "pysrt";
|
|
rev = "v${version}";
|
|
sha256 = "1f5hxyzlh5mdvvi52qapys9qcinffr6ghgivb6k4jxa92cbs3mfg";
|
|
};
|
|
|
|
nativeCheckInputs = [ nose ];
|
|
checkPhase = ''
|
|
nosetests -v
|
|
'';
|
|
|
|
propagatedBuildInputs = [ chardet ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/byroot/pysrt";
|
|
license = licenses.gpl3;
|
|
description = "Python library used to edit or create SubRip files";
|
|
};
|
|
}
|