Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / netio / default.nix
blob29159d6288baeef7705b6e3f4bddf38b8e9b4dc6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , poetry-core
5 , pyopenssl
6 , pythonOlder
7 , pythonRelaxDepsHook
8 , requests
9 }:
11 buildPythonPackage rec {
12   pname = "netio";
13   version = "1.0.13";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "netioproducts";
20     repo = "PyNetio";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-s/X2WGhQXYsbo+ZPpkVSF/vclaThYYNHu0UY0yCnfPA=";
23   };
25   nativeBuildInputs = [
26     poetry-core
27     pythonRelaxDepsHook
28   ];
30   pythonRelaxDeps = [
31     "pyopenssl"
32   ];
34   propagatedBuildInputs = [
35     requests
36     pyopenssl
37   ];
39   pythonImportsCheck = [
40     "Netio"
41   ];
43   # Module has no tests
44   doCheck = false;
46   meta = with lib; {
47     description = "Module for interacting with NETIO devices";
48     mainProgram = "Netio";
49     homepage = "https://github.com/netioproducts/PyNetio";
50     changelog = "https://github.com/netioproducts/PyNetio/blob/v${version}/CHANGELOG.md";
51     license = licenses.mit;
52     maintainers = with maintainers; [ fab ];
53   };