From cb6be049d33bf54a955d9a58f9a227672f13c9e0 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 14:32:29 -0400 Subject: [PATCH] pythonPackages.epc: refactor move to python-modules --- .../python-modules/epc/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +----------- 2 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/epc/default.nix diff --git a/pkgs/development/python-modules/epc/default.nix b/pkgs/development/python-modules/epc/default.nix new file mode 100644 index 000000000000..621f450f2eb0 --- /dev/null +++ b/pkgs/development/python-modules/epc/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, sexpdata +}: + +buildPythonPackage rec { + pname = "epc"; + version = "0.0.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "30b594bd4a4acbd5bda0d3fa3d25b4e8117f2ff8f24d2d1e3e36c90374f3c55e"; + }; + + propagatedBuildInputs = [ sexpdata ]; + doCheck = false; + + meta = with stdenv.lib; { + description = "EPC (RPC stack for Emacs Lisp) implementation in Python"; + homepage = "https://github.com/tkf/python-epc"; + license = licenses.gpl3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2bc713d39ff2..c3b939b69899 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2352,21 +2352,7 @@ in { enum34 = callPackage ../development/python-modules/enum34 { }; - epc = buildPythonPackage rec { - name = "epc-0.0.3"; - src = pkgs.fetchurl { - url = "mirror://pypi/e/epc/${name}.tar.gz"; - sha256 = "30b594bd4a4acbd5bda0d3fa3d25b4e8117f2ff8f24d2d1e3e36c90374f3c55e"; - }; - - propagatedBuildInputs = with self; [ sexpdata ]; - doCheck = false; - - meta = { - description = "EPC (RPC stack for Emacs Lisp) implementation in Python"; - homepage = "https://github.com/tkf/python-epc"; - }; - }; + epc = callPackage ../development/python-modules/epc { }; et_xmlfile = buildPythonPackage rec { version = "1.0.1";