3
0
Fork 0
forked from mirrors/nixpkgs

pysrt: enable tests

This commit is contained in:
Jörg Thalheim 2017-05-21 09:21:14 +01:00
parent 610c27ca64
commit 219daab8e7
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -1,18 +1,26 @@
{ stdenv
, buildPythonApplication
, fetchurl
, fetchFromGitHub
, chardet
, nose
}:
buildPythonApplication rec {
name = "pysrt-${version}";
version = "1.1.1";
src = fetchurl {
url = "mirror://pypi/p/pysrt/${name}.tar.gz";
sha256 = "1anhfilhamdv15w9mmzwc5a8fsri00ghkmcws4r5mz298m110k7v";
src = fetchFromGitHub {
owner = "byroot";
repo = "pysrt";
rev = "v${version}";
sha256 = "0rwjaf26885vxhxnas5d8zwasvj7x88y4y2pdivjd4vdcpqrqdjn";
};
buildInputs = [ nose ];
checkPhase = ''
nosetests -v
'';
propagatedBuildInputs = [ chardet ];
meta = with stdenv.lib; {