From 265b0c85ac5472698d6c26560623ee768cb9cbbf Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Sat, 27 Oct 2018 17:47:35 -0400 Subject: [PATCH] pythonPackages.python-statsd: refactor move to python-modules --- .../python-modules/python_statsd/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +------------ 2 files changed, 29 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/python_statsd/default.nix diff --git a/pkgs/development/python-modules/python_statsd/default.nix b/pkgs/development/python-modules/python_statsd/default.nix new file mode 100644 index 000000000000..744894212c71 --- /dev/null +++ b/pkgs/development/python-modules/python_statsd/default.nix @@ -0,0 +1,28 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +, mock +, nose +, coverage +}: + +buildPythonPackage rec { + pname = "python-statsd"; + version = "1.6.0"; + disabled = isPy3k; # next release will be py3k compatible + + src = fetchPypi { + inherit pname version; + sha256 = "3d2fc153e0d894aa9983531ef47d20d75bd4ee9fd0e46a9d82f452dde58a0a71"; + }; + + buildInputs = [ mock nose coverage ]; + + meta = with stdenv.lib; { + description = "A client for Etsy's node-js statsd server"; + homepage = https://github.com/WoLpH/python-statsd; + license = licenses.bsd3; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a38f60d28263..62da7064f448 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3912,25 +3912,7 @@ in { statsmodels = callPackage ../development/python-modules/statsmodels { }; - python_statsd = buildPythonPackage rec { - name = "python-statsd-${version}"; - version = "1.6.0"; - disabled = isPy3k; # next release will be py3k compatible - - src = pkgs.fetchurl { - url = "mirror://pypi/p/python-statsd/${name}.tar.gz"; - sha256 = "3d2fc153e0d894aa9983531ef47d20d75bd4ee9fd0e46a9d82f452dde58a0a71"; - }; - - buildInputs = with self; [ mock nose coverage ]; - - meta = { - description = "A client for Etsy's node-js statsd server"; - homepage = https://github.com/WoLpH/python-statsd; - license = licenses.bsd3; - }; - }; - + python_statsd = callPackage ../development/python-modules/python_statsd { }; stompclient = buildPythonPackage (rec { name = "stompclient-0.3.2";