1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, httpsig
5, pytest-asyncio
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "pysmartapp";
12 version = "0.3.4";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "andrewsayre";
19 repo = pname;
20 rev = version;
21 hash = "sha256-zYjv7wRxQTS4PnNaY69bw9xE6I4DZMocwUzEICBfwqM=";
22 };
23
24 propagatedBuildInputs = [
25 httpsig
26 ];
27
28 nativeCheckInputs = [
29 pytest-asyncio
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "pysmartapp"
35 ];
36
37 meta = with lib; {
38 description = "Python implementation to work with SmartApp lifecycle events";
39 homepage = "https://github.com/andrewsayre/pysmartapp";
40 changelog = "https://github.com/andrewsayre/pysmartapp/releases/tag/${version}";
41 license = with licenses; [ mit ];
42 maintainers = with maintainers; [ fab ];
43 };
44}