blob: f30dc218379ce058f4729f3218d3628851145e12 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, rope
, flake8
, autopep8
, jedi
, importmagic
, black
, mock
, nose
, yapf
, isPy3k
}:
buildPythonPackage rec {
pname = "elpy";
version = "1.29.1";
src = fetchFromGitHub {
owner = "jorgenschaefer";
repo = pname;
rev = version;
sha256 = "19sd5p03rkp5yibq1ilwisq8jlma02ks2kdc3swy6r27n4hy90xf";
};
propagatedBuildInputs = [ flake8 autopep8 jedi importmagic rope yapf ]
++ stdenv.lib.optionals isPy3k [ black ];
checkInputs = [ mock nose ];
checkPhase = ''
HOME=$(mktemp -d) nosetests -e "test_should_complete_top_level_modules_for_import"
'';
meta = with stdenv.lib; {
description = "Backend for the elpy Emacs mode";
homepage = "https://github.com/jorgenschaefer/elpy";
license = licenses.gpl3;
maintainers = [ maintainers.costrouc ];
};
}
|