pythonPackages.elpy: 1.28.0 -> 1.29.1 add tests

This commit is contained in:
Chris Ostrouchov 2019-08-26 14:13:45 -04:00
parent bfcab98074
commit 1d30da1e2b
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
1 changed files with 20 additions and 9 deletions

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 ];
}; };
} }