pythonPackages.ntplib: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 14:24:24 -04:00 committed by Frederik Rietdijk
parent d9d93f8e14
commit 1a267e65f7
2 changed files with 25 additions and 15 deletions

View File

@ -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;
};
}

View File

@ -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 { };