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