From 6d9a7397f1f07de220c7fde059c976280d313049 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Thu, 25 Oct 2018 21:41:54 -0400 Subject: [PATCH] pythonPackages.python3pika: refactor move to python-modules --- .../python-modules/python3pika/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +--------- 2 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/python3pika/default.nix diff --git a/pkgs/development/python-modules/python3pika/default.nix b/pkgs/development/python-modules/python3pika/default.nix new file mode 100644 index 000000000000..4f75acff02ec --- /dev/null +++ b/pkgs/development/python-modules/python3pika/default.nix @@ -0,0 +1,33 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +, nose +, mock +, pyyaml +, unittest2 +}: + +buildPythonPackage rec { + pname = "python3-pika"; + version = "0.9.14"; + disabled = !isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "1c3hifwvn04kvlja88iawf0awyz726jynwnpcb6gn7376b4nfch7"; + }; + + # Unit tests adds dependencies on pyev, tornado and twisted (and twisted is disabled for Python 3) + doCheck = false; + + buildInputs = [ nose mock pyyaml ]; + propagatedBuildInputs = [ unittest2 ]; + + meta = with stdenv.lib; { + homepage = https://pika.readthedocs.org/; + description = "Pika Python AMQP Client Library"; + license = licenses.gpl2; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e3d7df3731fe..e28ed984eb8b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3178,22 +3178,7 @@ in { pysoundfile = callPackage ../development/python-modules/pysoundfile { }; - python3pika = buildPythonPackage { - name = "python3-pika-0.9.14"; - disabled = !isPy3k; - - # Unit tests adds dependencies on pyev, tornado and twisted (and twisted is disabled for Python 3) - doCheck = false; - - src = pkgs.fetchurl { - url = mirror://pypi/p/python3-pika/python3-pika-0.9.14.tar.gz; - sha256 = "1c3hifwvn04kvlja88iawf0awyz726jynwnpcb6gn7376b4nfch7"; - }; - buildInputs = with self; [ nose mock pyyaml ]; - - propagatedBuildInputs = with self; [ unittest2 ]; - }; - + python3pika = callPackage ../development/python-modules/python3pika { }; python-jenkins = buildPythonPackage rec { name = "python-jenkins-${version}";