pysrt: enable tests
This commit is contained in:
parent
610c27ca64
commit
219daab8e7
@ -1,18 +1,26 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonApplication
|
, buildPythonApplication
|
||||||
, fetchurl
|
, fetchFromGitHub
|
||||||
, chardet
|
, chardet
|
||||||
|
, nose
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
name = "pysrt-${version}";
|
name = "pysrt-${version}";
|
||||||
version = "1.1.1";
|
version = "1.1.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "mirror://pypi/p/pysrt/${name}.tar.gz";
|
owner = "byroot";
|
||||||
sha256 = "1anhfilhamdv15w9mmzwc5a8fsri00ghkmcws4r5mz298m110k7v";
|
repo = "pysrt";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0rwjaf26885vxhxnas5d8zwasvj7x88y4y2pdivjd4vdcpqrqdjn";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ nose ];
|
||||||
|
checkPhase = ''
|
||||||
|
nosetests -v
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ chardet ];
|
propagatedBuildInputs = [ chardet ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user