mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
python.pkgs.pysrt: use buildPythonPackage and checkInputs
This commit is contained in:
parent
357602afaf
commit
acad55399a
|
@ -1,11 +1,11 @@
|
|||
{ stdenv
|
||||
, buildPythonApplication
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, chardet
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
buildPythonPackage rec {
|
||||
pname = "pysrt";
|
||||
version = "1.1.1";
|
||||
|
||||
|
@ -16,7 +16,7 @@ buildPythonApplication rec {
|
|||
sha256 = "0rwjaf26885vxhxnas5d8zwasvj7x88y4y2pdivjd4vdcpqrqdjn";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
checkInputs = [ nose ];
|
||||
checkPhase = ''
|
||||
nosetests -v
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue