2022-07-05 22:57:49 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, chardet
|
|
|
|
, configparser
|
|
|
|
, datadog
|
|
|
|
, requests
|
|
|
|
, python
|
2020-11-02 03:48:36 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gradient_statsd";
|
|
|
|
version = "1.0.1";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "iWlNX43ZtvU73wz4+8DgDulQNOnssJGxTBkvAaLj530=";
|
|
|
|
};
|
|
|
|
|
2022-07-05 22:57:49 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
chardet
|
|
|
|
datadog
|
|
|
|
requests
|
|
|
|
]
|
|
|
|
++ lib.optional python.isPy2 configparser;
|
2020-11-02 03:48:36 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "gradient_statsd" ];
|
|
|
|
|
2020-11-10 11:59:36 +00:00
|
|
|
# Pypi does not contain tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-02 03:48:36 +00:00
|
|
|
description = "Wrapper around the DogStatsd client";
|
|
|
|
homepage = "https://paperspace.com";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
|
|
};
|
|
|
|
}
|