mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
pysrt: enable tests
This commit is contained in:
parent
610c27ca64
commit
219daab8e7
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue