1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 wheel,
7 mock,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "polling";
13 version = "0.3.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "justiniso";
18 repo = "polling";
19 rev = "v${version}";
20 hash = "sha256-Qy2QxCWzAjZMJ6yxZiDT/80I2+rLimoG8/SYxq960Tk=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 wheel
26 ];
27
28 pythonImportsCheck = [ "polling" ];
29
30 nativeCheckInputs = [
31 mock
32 pytestCheckHook
33 ];
34
35 meta = with lib; {
36 description = "Powerful polling utility in Python";
37 homepage = "https://github.com/justiniso/polling";
38 license = licenses.mit;
39 maintainers = [ ];
40 };
41}