1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "events";
10 version = "0.5";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchFromGitHub {
16 owner = "pyeve";
17 repo = "events";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-GGhIKHbJ31IN0Uoe689X9V/MZvtseE47qx2CmM4MYUs=";
20 };
21
22 nativeCheckInputs = [
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [
27 "events"
28 ];
29
30 pytestFlagsArray = [
31 "events/tests/tests.py"
32 ];
33
34 meta = with lib; {
35 description = "Bringing the elegance of C# EventHanlder to Python";
36 homepage = "https://events.readthedocs.org";
37 changelog = "https://github.com/pyeve/events/blob/v0.5/CHANGES";
38 license = licenses.bsd3;
39 maintainers = with maintainers; [ ];
40 };
41}