1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest-asyncio,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "dynalite-devices";
13 version = "0.1.48";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "ziv1234";
20 repo = "python-dynalite-devices";
21 tag = "v${version}";
22 hash = "sha256-i88aIsRNsToSceQdwfspJg+Y5MO5zC4O6EkyhrYR27g=";
23 };
24
25 postPatch = ''
26 sed -i '/^addopts/d' setup.cfg
27 '';
28
29 nativeBuildInputs = [ setuptools ];
30
31 nativeCheckInputs = [
32 pytest-asyncio
33 pytestCheckHook
34 ];
35
36 pytestFlags = [ "--asyncio-mode=auto" ];
37
38 pythonImportsCheck = [ "dynalite_devices_lib" ];
39
40 # it would use the erroneous tag v0.47
41 passthru.skipBulkUpdate = true;
42
43 meta = with lib; {
44 description = "Unofficial Dynalite DyNET interface creating devices";
45 homepage = "https://github.com/ziv1234/python-dynalite-devices";
46 changelog = "https://github.com/ziv1234/python-dynalite-devices/releases/tag/v${version}";
47 license = licenses.mit;
48 maintainers = with maintainers; [ dotlambda ];
49 };
50}