summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/polling/default.nix
blob: c9bc91bdd0b6cb8eaaa869c7fdeb3a3e0c9724fa (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  wheel,
  mock,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "polling";
  version = "0.3.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "justiniso";
    repo = "polling";
    rev = "v${version}";
    hash = "sha256-Qy2QxCWzAjZMJ6yxZiDT/80I2+rLimoG8/SYxq960Tk=";
  };

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  pythonImportsCheck = [ "polling" ];

  nativeCheckInputs = [
    mock
    pytestCheckHook
  ];

  meta = {
    description = "Powerful polling utility in Python";
    homepage = "https://github.com/justiniso/polling";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}