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