Merge pull request #67518 from costrouc/python-elpy-update

pythonPackages.elpy: 1.28.0 -> 1.29.1 add tests
This commit is contained in:
Marek Mahut 2019-08-27 22:46:45 +02:00 committed by GitHub
commit 5a097da243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,32 +1,43 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, rope , rope
, flake8 , flake8
, autopep8 , autopep8
, jedi , jedi
, importmagic , importmagic
, isPy27 , black
, mock
, nose
, yapf
, isPy3k
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "elpy"; pname = "elpy";
version = "1.28.0"; version = "1.29.1";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "jorgenschaefer";
sha256 = "0lx6bf6ajx6wmnns03gva5sh1mmmxahjaqrn735cgwn6j4ikyqfs"; repo = pname;
rev = version;
sha256 = "19sd5p03rkp5yibq1ilwisq8jlma02ks2kdc3swy6r27n4hy90xf";
}; };
propagatedBuildInputs = [ flake8 autopep8 jedi importmagic ] propagatedBuildInputs = [ flake8 autopep8 jedi importmagic rope yapf ]
++ stdenv.lib.optionals isPy27 [ rope ]; ++ stdenv.lib.optionals isPy3k [ black ];
doCheck = false; # there are no tests checkInputs = [ mock nose ];
checkPhase = ''
HOME=$(mktemp -d) nosetests -e "test_should_complete_top_level_modules_for_import"
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Backend for the elpy Emacs mode"; description = "Backend for the elpy Emacs mode";
homepage = "https://github.com/jorgenschaefer/elpy"; homepage = "https://github.com/jorgenschaefer/elpy";
license = licenses.gpl3; license = licenses.gpl3;
maintainers = [ maintainers.costrouc ];
}; };
} }