pythonPackages.influxdb: refactor move to python-modules
This commit is contained in:
parent
f725650c69
commit
c1f0f33fee
29
pkgs/development/python-modules/influxdb/default.nix
Normal file
29
pkgs/development/python-modules/influxdb/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2482,24 +2482,7 @@ in {
|
|||||||
|
|
||||||
inflection = callPackage ../development/python-modules/inflection { };
|
inflection = callPackage ../development/python-modules/inflection { };
|
||||||
|
|
||||||
influxdb = buildPythonPackage rec {
|
influxdb = callPackage ../development/python-modules/influxdb { };
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
infoqscraper = buildPythonPackage rec {
|
infoqscraper = buildPythonPackage rec {
|
||||||
name = pname + "-" + version;
|
name = pname + "-" + version;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user