3
0
Fork 0
forked from mirrors/nixpkgs

python.pkgs.pyasn1-modules: fix python2 tests (#60618)

Broken by the update in e03d55130f.
This commit is contained in:
Timo Kaufmann 2019-05-01 13:26:05 +02:00 committed by GitHub
parent f137783927
commit 7909ed1dee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,10 @@
{ stdenv, buildPythonPackage, fetchPypi, pyasn1, isPyPy }:
{ stdenv
, buildPythonPackage
, fetchPypi
, pyasn1
, isPyPy
, pytest
}:
buildPythonPackage rec {
pname = "pyasn1-modules";
@ -11,6 +17,16 @@ buildPythonPackage rec {
propagatedBuildInputs = [ pyasn1 ];
checkInputs = [
pytest
];
# running tests through setup.py fails only for python2 for some reason:
# AttributeError: 'module' object has no attribute 'suitetests'
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
description = "A collection of ASN.1-based protocols modules";
homepage = https://pypi.python.org/pypi/pyasn1-modules;