1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 mock,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "statsd";
12 version = "4.0.1";
13 format = "pyproject";
14
15 src = fetchFromGitHub {
16 owner = "jsocol";
17 repo = "pystatsd";
18 tag = "v${version}";
19 hash = "sha256-g830TjFERKUguFKlZeaOhCTlaUs0wcDg4bMdRDr3smw=";
20 };
21
22 nativeBuildInputs = [ setuptools ];
23
24 nativeCheckInputs = [
25 mock
26 pytestCheckHook
27 ];
28
29 enabledTestPaths = [ "statsd/tests.py" ];
30
31 meta = with lib; {
32 maintainers = with maintainers; [ ];
33 description = "Simple statsd client";
34 license = licenses.mit;
35 homepage = "https://github.com/jsocol/pystatsd";
36 };
37}