pythonPackages.ezdxf: fix tests

This commit is contained in:
Jörg Thalheim 2017-04-25 23:22:53 +02:00
parent 244b575a1d
commit 1e3416cc0a
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -1,17 +1,19 @@
{ stdenv, buildPythonPackage, fetchurl, isPy3k, pyparsing }:
{ stdenv, buildPythonPackage, fetchFromGitHub, pyparsing, pytest }:
buildPythonPackage rec {
version = "0.8.1";
name = "ezdxf-${version}";
src = fetchurl {
url = "mirror://pypi/e/ezdxf/${name}.zip";
sha256 = "1q4la4h7840wb8l2jf39wy68gq5jwymkghb1a1mg8qblj424130k";
src = fetchFromGitHub {
owner = "mozman";
repo = "ezdxf";
rev = "v${version}";
sha256 = "1c20j96n3rsgzaakfjl0wnydaj2qr69gbnnjs6mfa1hz2fjqri22";
};
# Tests fail on Python 3.x, but module imports and works
doCheck = !(isPy3k);
buildInputs = [ pytest ];
checkPhase = "python -m unittest discover -s tests";
propagatedBuildInputs = [ pyparsing ];
meta = with stdenv.lib; {