pythonPackages.influxdb: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-16 17:20:29 -04:00 committed by Frederik Rietdijk
parent f725650c69
commit c1f0f33fee
2 changed files with 30 additions and 18 deletions

View file

@ -0,0 +1,29 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, requests
, dateutil
, pytz
, six
}:
buildPythonPackage rec {
pname = "influxdb";
version = "4.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0injsml6zmb3hkgc03117fdlg573kbfgjbijpd5npf0vsy0xnpvz";
};
# ImportError: No module named tests
doCheck = false;
propagatedBuildInputs = [ requests dateutil pytz six ];
meta = with stdenv.lib; {
description = "Python client for InfluxDB";
homepage = https://github.com/influxdb/influxdb-python;
license = licenses.mit;
};
}

View file

@ -2482,24 +2482,7 @@ in {
inflection = callPackage ../development/python-modules/inflection { };
influxdb = buildPythonPackage rec {
name = "influxdb-4.0.0";
src = pkgs.fetchurl {
url = "mirror://pypi/i/influxdb/${name}.tar.gz";
sha256 = "0injsml6zmb3hkgc03117fdlg573kbfgjbijpd5npf0vsy0xnpvz";
};
# ImportError: No module named tests
doCheck = false;
propagatedBuildInputs = with self; [ requests dateutil pytz six ];
meta = {
description = "Python client for InfluxDB";
homepage = https://github.com/influxdb/influxdb-python;
license = licenses.mit;
};
};
influxdb = callPackage ../development/python-modules/influxdb { };
infoqscraper = buildPythonPackage rec {
name = pname + "-" + version;