python.pkgs.pysrt: use buildPythonPackage and checkInputs

This commit is contained in:
Robert Schütz 2019-03-15 16:54:52 +01:00
parent 357602afaf
commit acad55399a

View File

@ -1,11 +1,11 @@
{ stdenv { stdenv
, buildPythonApplication , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, chardet , chardet
, nose , nose
}: }:
buildPythonApplication rec { buildPythonPackage rec {
pname = "pysrt"; pname = "pysrt";
version = "1.1.1"; version = "1.1.1";
@ -16,7 +16,7 @@ buildPythonApplication rec {
sha256 = "0rwjaf26885vxhxnas5d8zwasvj7x88y4y2pdivjd4vdcpqrqdjn"; sha256 = "0rwjaf26885vxhxnas5d8zwasvj7x88y4y2pdivjd4vdcpqrqdjn";
}; };
buildInputs = [ nose ]; checkInputs = [ nose ];
checkPhase = '' checkPhase = ''
nosetests -v nosetests -v
''; '';