1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, rope
5, flake8
6, autopep8
7, jedi
8, importmagic
9, isPy27
10}:
11
12buildPythonPackage rec {
13 pname = "elpy";
14 version = "1.28.0";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "0lx6bf6ajx6wmnns03gva5sh1mmmxahjaqrn735cgwn6j4ikyqfs";
19 };
20
21 propagatedBuildInputs = [ flake8 autopep8 jedi importmagic ]
22 ++ stdenv.lib.optionals isPy27 [ rope ];
23
24 doCheck = false; # there are no tests
25
26 meta = with stdenv.lib; {
27 description = "Backend for the elpy Emacs mode";
28 homepage = "https://github.com/jorgenschaefer/elpy";
29 license = licenses.gpl3;
30 };
31
32}