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; {