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

View File

@ -2344,24 +2344,7 @@ in {
effect = callPackage ../development/python-modules/effect {};
elpy = buildPythonPackage rec {
name = "elpy-${version}";
version = "1.9.0";
src = pkgs.fetchurl {
url = "mirror://pypi/e/elpy/${name}.tar.gz";
sha256 = "419f7b05b19182bc1aedde1ae80812c1534e59a0493476aa01ea819e76ba26f0";
};
python2Deps = if isPy3k then [ ] else [ self.rope ];
propagatedBuildInputs = with self; [ flake8 autopep8 jedi importmagic ] ++ python2Deps;
doCheck = false; # there are no tests
meta = {
description = "Backend for the elpy Emacs mode";
homepage = "https://github.com/jorgenschaefer/elpy";
};
};
elpy = callPackage ../development/python-modules/elpy { };
enum = buildPythonPackage rec {
name = "enum-0.4.4";