about summary refs log tree commit diff
path: root/pkgs/development/python-modules/gradient-statsd/default.nix
blob: 4e6dc0f1424d46753915022b312b5feccb99c4bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  buildPythonPackage,
  certifi,
  chardet,
  datadog,
  decorator,
  fetchPypi,
  idna,
  requests,
  urllib3,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "gradient-statsd";
  version = "1.0.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    pname = "gradient_statsd";
    inherit version;
    hash = "sha256-iWlNX43ZtvU73wz4+8DgDulQNOnssJGxTBkvAaLj530=";
  };

  propagatedBuildInputs = [
    certifi
    chardet
    datadog
    decorator
    idna
    requests
    urllib3
  ];

  pythonImportsCheck = [ "gradient_statsd" ];

  # Pypi does not contain tests
  doCheck = false;

  meta = with lib; {
    description = "Wrapper around the DogStatsd client";
    homepage = "https://paperspace.com";
    license = licenses.mit;
    maintainers = with maintainers; [ freezeboy ];
    platforms = platforms.unix;
  };
}