1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, pyopenssl 6, pythonOlder 7, requests 8, setuptools 9}: 10 11buildPythonPackage rec { 12 pname = "netio"; 13 version = "1.0.13"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "netioproducts"; 20 repo = "PyNetio"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-s/X2WGhQXYsbo+ZPpkVSF/vclaThYYNHu0UY0yCnfPA="; 23 }; 24 25 nativeBuildInputs = [ 26 poetry-core 27 ]; 28 29 propagatedBuildInputs = [ 30 requests 31 pyopenssl 32 ]; 33 34 pythonImportsCheck = [ 35 "Netio" 36 ]; 37 38 # Module has no tests 39 doCheck = false; 40 41 meta = with lib; { 42 description = "Module for interacting with NETIO devices"; 43 homepage = "https://github.com/netioproducts/PyNetio"; 44 changelog = "https://github.com/netioproducts/PyNetio/blob/v${version}/CHANGELOG.md"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}