pythonPackages.elpy: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov
2018-10-16 14:24:38 -04:00
committed by Frederik Rietdijk
parent 9d8fa90647
commit 29ac3c651d
2 changed files with 33 additions and 18 deletions

View File

@@ -0,0 +1,32 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, rope
, flake8
, autopep8
, jedi
, importmagic
, isPy27
}:
buildPythonPackage rec {
pname = "elpy";
version = "1.9.0";
src = fetchPypi {
inherit pname version;
sha256 = "419f7b05b19182bc1aedde1ae80812c1534e59a0493476aa01ea819e76ba26f0";
};
propagatedBuildInputs = [ flake8 autopep8 jedi importmagic ]
++ stdenv.lib.optionals isPy27 [ rope ];
doCheck = false; # there are no tests
meta = with stdenv.lib; {
description = "Backend for the elpy Emacs mode";
homepage = "https://github.com/jorgenschaefer/elpy";
license = licenses.gpl3;
};
}