diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2017-04-25 23:22:53 +0200 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-04-25 23:25:13 +0200 |
commit | 1e3416cc0a3454ade851ad420eca61a971327c18 (patch) | |
tree | 4774e7144c7cd5f09627402334deccdbd87b50df /pkgs/development/python-modules/ezdxf | |
parent | 244b575a1d88105c6cc34fe3e27e4931c9f26285 (diff) | |
download | nixlib-1e3416cc0a3454ade851ad420eca61a971327c18.tar nixlib-1e3416cc0a3454ade851ad420eca61a971327c18.tar.gz nixlib-1e3416cc0a3454ade851ad420eca61a971327c18.tar.bz2 nixlib-1e3416cc0a3454ade851ad420eca61a971327c18.tar.lz nixlib-1e3416cc0a3454ade851ad420eca61a971327c18.tar.xz nixlib-1e3416cc0a3454ade851ad420eca61a971327c18.tar.zst nixlib-1e3416cc0a3454ade851ad420eca61a971327c18.zip |
pythonPackages.ezdxf: fix tests
Diffstat (limited to 'pkgs/development/python-modules/ezdxf')
-rw-r--r-- | pkgs/development/python-modules/ezdxf/default.nix | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/ezdxf/default.nix b/pkgs/development/python-modules/ezdxf/default.nix index 18e8e98315cc..6b0484f2c366 100644 --- a/pkgs/development/python-modules/ezdxf/default.nix +++ b/pkgs/development/python-modules/ezdxf/default.nix @@ -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; { |