From 219daab8e72656ae345bd108a36441a0027fa4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 21 May 2017 09:21:14 +0100 Subject: [PATCH] pysrt: enable tests --- .../development/python-modules/pysrt/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pysrt/default.nix b/pkgs/development/python-modules/pysrt/default.nix index 49b93eabde78..076838425a42 100644 --- a/pkgs/development/python-modules/pysrt/default.nix +++ b/pkgs/development/python-modules/pysrt/default.nix @@ -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; {