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