From 3b1982079618fbb01c905a38549cb1ebb82d8947 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 26 Oct 2018 11:51:53 -0400 Subject: [PATCH] pythonPackages.rabbitpy: refactor move to python-moduels --- .../python-modules/rabbitpy/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +------------- 2 files changed, 28 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/rabbitpy/default.nix diff --git a/pkgs/development/python-modules/rabbitpy/default.nix b/pkgs/development/python-modules/rabbitpy/default.nix new file mode 100644 index 000000000000..b9ec712759bd --- /dev/null +++ b/pkgs/development/python-modules/rabbitpy/default.nix @@ -0,0 +1,27 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, mock +, nose +, pamqp +}: + +buildPythonPackage rec { + version = "0.26.2"; + pname = "rabbitpy"; + + src = fetchPypi { + inherit pname version; + sha256 = "0pgijv7mgxc4sm7p9s716dhl600l8isisxzyg4hz7ng1sk09p1w3"; + }; + + buildInputs = [ mock nose ]; + propagatedBuildInputs = [ pamqp ]; + + meta = with stdenv.lib; { + description = "A pure python, thread-safe, minimalistic and pythonic RabbitMQ client library"; + homepage = https://pypi.python.org/pypi/rabbitpy; + license = licenses.bsd3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cf2d0f071e7d..eb1d331f9932 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3522,25 +3522,7 @@ in { pyyaml = callPackage ../development/python-modules/pyyaml { }; - rabbitpy = buildPythonPackage rec { - version = "0.26.2"; - name = "rabbitpy-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/r/rabbitpy/${name}.tar.gz"; - sha256 = "0pgijv7mgxc4sm7p9s716dhl600l8isisxzyg4hz7ng1sk09p1w3"; - }; - - buildInputs = with self; [ mock nose ]; - - propagatedBuildInputs = with self; [ pamqp ]; - - meta = { - description = "A pure python, thread-safe, minimalistic and pythonic RabbitMQ client library"; - homepage = https://pypi.python.org/pypi/rabbitpy; - license = licenses.bsd3; - }; - }; + rabbitpy = callPackage ../development/python-modules/rabbitpy { }; radicale_infcloud = callPackage ../development/python-modules/radicale_infcloud {};