From 1a267e65f74e79bc8ae323f72041b869c84bc93e Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 17 Oct 2018 14:24:24 -0400 Subject: [PATCH] pythonPackages.ntplib: refactor move to python-modules --- .../python-modules/ntplib/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +------------ 2 files changed, 25 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/ntplib/default.nix diff --git a/pkgs/development/python-modules/ntplib/default.nix b/pkgs/development/python-modules/ntplib/default.nix new file mode 100644 index 000000000000..d6506ae4b4ad --- /dev/null +++ b/pkgs/development/python-modules/ntplib/default.nix @@ -0,0 +1,24 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "ntplib"; + version = "0.3.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "c4621b64d50be9461d9bd9a71ba0b4af06fbbf818bbd483752d95c1a4e273ede"; + }; + + # Require networking + doCheck = false; + + meta = with stdenv.lib; { + description = "Python NTP library"; + homepage = http://code.google.com/p/ntplib/; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 62b3a8838079..712d9940f5de 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2948,21 +2948,7 @@ in { ntfy = callPackage ../development/python-modules/ntfy { }; - ntplib = buildPythonPackage rec { - name = "ntplib-0.3.3"; - src = pkgs.fetchurl { - url = mirror://pypi/n/ntplib/ntplib-0.3.3.tar.gz; - sha256 = "c4621b64d50be9461d9bd9a71ba0b4af06fbbf818bbd483752d95c1a4e273ede"; - }; - - # Require networking - doCheck = false; - - meta = { - description = "Python NTP library"; - license = licenses.mit; - }; - }; + ntplib = callPackage ../development/python-modules/ntplib { }; numba = callPackage ../development/python-modules/numba { };