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