Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pyopenssl 5, pythonOlder 6, requests 7, setuptools 8}: 9 10buildPythonPackage rec { 11 pname = "netio"; 12 version = "1.0.10"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 pname ="Netio"; 19 inherit version; 20 hash = "sha256-+fGs7ZwvspAW4GlO5Hx+gNb+7Mhl9HC4pijHyk+8PYs="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 propagatedBuildInputs = [ 28 requests 29 pyopenssl 30 ]; 31 32 pythonImportsCheck = [ 33 "Netio" 34 ]; 35 36 # Module has no tests 37 doCheck = false; 38 39 meta = with lib; { 40 description = "Module for interacting with NETIO devices"; 41 homepage = "https://github.com/netioproducts/PyNetio"; 42 changelog = "https://github.com/netioproducts/PyNetio/blob/v${version}/CHANGELOG.md"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}