about summary refs log tree commit diff
path: root/pkgs/development/python-modules/statsd/default.nix
blob: 21127c85adf8db958f40db5d16c872a64ba65212 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  mock,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "statsd";
  version = "4.0.1";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "jsocol";
    repo = "pystatsd";
    rev = "refs/tags/v${version}";
    hash = "sha256-g830TjFERKUguFKlZeaOhCTlaUs0wcDg4bMdRDr3smw=";
  };

  nativeBuildInputs = [ setuptools ];

  nativeCheckInputs = [
    mock
    pytestCheckHook
  ];

  pytestFlagsArray = [ "statsd/tests.py" ];

  meta = with lib; {
    maintainers = with maintainers; [ domenkozar ];
    description = "Simple statsd client";
    license = licenses.mit;
    homepage = "https://github.com/jsocol/pystatsd";
  };
}