git.iko.soy/typeable/nixpkgs
on master help sign in
emacs-packages: Drop elpy package

Use auto-generated melpa package

commitaf70adbc892e0b1c548cffa4a05749085dce2cbf authoradisbladis <adisbladis@gmail.com> dateSun 4 Aug 2019, 19:36 (7 years ago) parentb00038c
2 files changed+4−41
pkgs/applications/editors/emacs-modes/melpa-packages.nix+4 pkgs/top-level/emacs-packages.nix−41
pkgs/applications/editors/emacs-modes/melpa-packages.nix+4
@@ -60,6 +60,10 @@ env NIXPKGS_ALLOW_BROKEN=1 nix-instantiate --show-trace ../../../../ -A emacsPac
6060 # upstream issue: missing file header
6161 elmine = markBroken super.elmine;
6262
63+ elpy = super.elpy.overrideAttrs(old: {
64+ propagatedUserEnvPkgs = old.propagatedUserEnvPkgs ++ [ external.elpy ];
65+ });
66+
6367 evil-magit = super.evil-magit.overrideAttrs (attrs: {
6468 # searches for Git at build time
6569 nativeBuildInputs =
pkgs/top-level/emacs-packages.nix−41
@@ -129,47 +129,6 @@ let
129129 };
130130 };
131131
132− elpy = melpaBuild rec {
133− pname = "elpy";
134− version = external.elpy.version;
135− src = fetchFromGitHub {
136− owner = "jorgenschaefer";
137− repo = pname;
138− rev = "39ea47c73f040ce8dcc1c2d2639ebc0eb57ab8c8";
139− sha256 = "0q3av1qv4m6aj4bil608f688hjpr5px8zqnnrdqx784nz98rpjrs";
140− };
141− recipe = writeText "recipe" ''
142− (elpy :repo "jorgenschaefer/elpy" :fetcher github)
143− '';
144−
145− patchPhase = ''
146− for file in elpy.el elpy-pkg.el; do
147− substituteInPlace $file \
148− --replace "company \"0.8.2\"" "company \"${company.version}\"" \
149− --replace "find-file-in-project \"3.3\"" "find-file-in-project \"${(melpaPackages self).find-file-in-project.version}\"" \
150− --replace "highlight-indentation \"0.5.0\"" "highlight-indentation \"${highlight-indentation.version}\"" \
151− --replace "pyvenv \"1.3\"" "pyvenv \"${pyvenv.version}\"" \
152− --replace "yasnippet \"0.8.0\"" "yasnippet \"${yasnippet.version}\""
153− done
154− '';
155−
156− packageRequires = [
157− company find-file-in-project highlight-indentation pyvenv yasnippet
158− ];
159−
160− propagatedUserEnvPkgs = [ external.elpy ] ++ packageRequires;
161−
162− meta = {
163− description = "Emacs Python Development Environment";
164− longDescription = ''
165− Elpy is an Emacs package to bring powerful Python editing to Emacs.
166− It combines a number of other packages, both written in Emacs Lisp as
167− well as Python.
168− '';
169− license = gpl3Plus;
170− };
171− };
172−
173132 ess-R-object-popup =
174133 callPackage ../applications/editors/emacs-modes/ess-R-object-popup { };
175134