From 16dc45288e6f3c5d35b770027e01fcc54f8c2cad Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 14:37:33 -0400 Subject: [PATCH] pythonPackages.eventlet: refactor move to python-modules --- .../python-modules/eventlet/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 23 +------------ 2 files changed, 34 insertions(+), 22 deletions(-) create mode 100644 pkgs/development/python-modules/eventlet/default.nix diff --git a/pkgs/development/python-modules/eventlet/default.nix b/pkgs/development/python-modules/eventlet/default.nix new file mode 100644 index 000000000000..afc880b2ba28 --- /dev/null +++ b/pkgs/development/python-modules/eventlet/default.nix @@ -0,0 +1,33 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +, httplib2 +, pyopenssl +, greenlet +, enum-compat +, isPyPy +}: + +buildPythonPackage rec { + pname = "eventlet"; + version = "0.20.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "15bq5ybbigxnp5xwkps53zyhlg15lmcnq3ny2dppj0r0bylcs5rf"; + }; + + buildInputs = [ nose httplib2 pyopenssl ]; + + doCheck = false; # too much transient errors to bother + + propagatedBuildInputs = [ enum-compat ] + ++ stdenv.lib.optionals (!isPyPy) [ greenlet ]; + + meta = with stdenv.lib; { + homepage = https://pypi.python.org/pypi/eventlet/; + description = "A concurrent networking library for Python"; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d52085fdc20f..55213482b0cc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2356,28 +2356,7 @@ in { et_xmlfile = callPackage ../development/python-modules/et_xmlfile { }; - eventlet = buildPythonPackage rec { - pname = "eventlet"; - version = "0.20.0"; - name = "${pname}-${version}"; - - src = fetchPypi { - inherit pname version; - sha256 = "15bq5ybbigxnp5xwkps53zyhlg15lmcnq3ny2dppj0r0bylcs5rf"; - }; - - buildInputs = with self; [ nose httplib2 pyopenssl ]; - - doCheck = false; # too much transient errors to bother - - propagatedBuildInputs = optionals (!isPyPy) [ self.greenlet ] ++ - (with self; [ enum-compat ]) ; - - meta = { - homepage = https://pypi.python.org/pypi/eventlet/; - description = "A concurrent networking library for Python"; - }; - }; + eventlet = callPackage ../development/python-modules/eventlet { }; exifread = buildPythonPackage rec { name = "ExifRead-2.1.2";