Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / dynalite-devices / default.nix
blobe07190f981045c749d1bfe64442b057ff6eccd91
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytest-asyncio
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "dynalite-devices";
12   version = "0.1.48";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "ziv1234";
19     repo = "python-dynalite-devices";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-i88aIsRNsToSceQdwfspJg+Y5MO5zC4O6EkyhrYR27g=";
22   };
24   postPatch = ''
25     sed -i '/^addopts/d' setup.cfg
26   '';
28   nativeBuildInputs = [
29     setuptools
30   ];
32   nativeCheckInputs = [
33     pytest-asyncio
34     pytestCheckHook
35   ];
37   pytestFlagsArray = [
38     "--asyncio-mode=auto"
39   ];
41   pythonImportsCheck = [
42     "dynalite_devices_lib"
43   ];
45   # it would use the erroneous tag v0.47
46   passthru.skipBulkUpdate = true;
48   meta = with lib; {
49     description = "An unofficial Dynalite DyNET interface creating devices";
50     homepage = "https://github.com/ziv1234/python-dynalite-devices";
51     changelog = "https://github.com/ziv1234/python-dynalite-devices/releases/tag/v${version}";
52     license = licenses.mit;
53     maintainers = with maintainers; [ dotlambda ];
54   };