From 869d9afd21cefe20d853e6d39dbfe0c67d61a317 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 31 Mar 2018 19:03:12 +0200 Subject: [PATCH] pythonPackages.coilmq: Move to own file --- .../python-modules/coilmq/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 25 +------------------ 2 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 pkgs/development/python-modules/coilmq/default.nix diff --git a/pkgs/development/python-modules/coilmq/default.nix b/pkgs/development/python-modules/coilmq/default.nix new file mode 100644 index 000000000000..ea008e46631d --- /dev/null +++ b/pkgs/development/python-modules/coilmq/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchPypi +, stompclient, pythondaemon, redis, pid, pytest, six, click, coverage +, sqlalchemy }: + +buildPythonPackage rec { + pname = "CoilMQ"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0wwa6fsqw1mxsryvgp0yrdjil8axyj0kslzi7lr45cnhgp5ab375"; + }; + + propagatedBuildInputs = [ stompclient pythondaemon redis pid ]; + buildInputs = [ pytest six click coverage sqlalchemy ]; + + # The teste data is not included in the distribution + doCheck = false; + + meta = with stdenv.lib; { + description = "Simple, lightweight, and easily extensible STOMP message broker"; + homepage = http://code.google.com/p/coilmq/; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 03bec1631223..141690249ebd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1596,30 +1596,7 @@ in { }; }); - - coilmq = buildPythonPackage (rec { - name = "CoilMQ-${version}"; - version = "1.0.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/C/CoilMQ/${name}.tar.gz"; - sha256 = "0wwa6fsqw1mxsryvgp0yrdjil8axyj0kslzi7lr45cnhgp5ab375"; - }; - - propagatedBuildInputs = with self; [ stompclient pythondaemon redis pid]; - - buildInputs = with self; [ pytest six click coverage sqlalchemy ]; - - # The teste data is not included in the distribution - doCheck = false; - - meta = { - description = "Simple, lightweight, and easily extensible STOMP message broker"; - homepage = http://code.google.com/p/coilmq/; - license = licenses.asl20; - }; - }); - + coilmq = callPackage ../development/python-modules/coilmq { }; colander = callPackage ../development/python-modules/colander { };