at master 969 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pyopenssl, 7 pythonOlder, 8 requests, 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 tag = "v${version}"; 22 hash = "sha256-s/X2WGhQXYsbo+ZPpkVSF/vclaThYYNHu0UY0yCnfPA="; 23 }; 24 25 nativeBuildInputs = [ 26 poetry-core 27 ]; 28 29 pythonRelaxDeps = [ "pyopenssl" ]; 30 31 propagatedBuildInputs = [ 32 requests 33 pyopenssl 34 ]; 35 36 pythonImportsCheck = [ "Netio" ]; 37 38 # Module has no tests 39 doCheck = false; 40 41 meta = with lib; { 42 description = "Module for interacting with NETIO devices"; 43 mainProgram = "Netio"; 44 homepage = "https://github.com/netioproducts/PyNetio"; 45 changelog = "https://github.com/netioproducts/PyNetio/blob/v${version}/CHANGELOG.md"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}