Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, paramiko 5, pytestCheckHook 6, pythonOlder 7, requests 8, requests-toolbelt 9, responses 10}: 11 12buildPythonPackage rec { 13 pname = "proxmoxer"; 14 version = "2.0.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = pname; 21 repo = pname; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-kwD6yJhVTaVAAUVA6k4r6HZy4w+MPDF7DfJBS8wGE/c="; 24 }; 25 26 propagatedBuildInputs = [ 27 paramiko 28 requests 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 33 requests-toolbelt 34 responses 35 ]; 36 37 disabledTestPaths = [ 38 # Tests require openssh_wrapper which is outdated and not available 39 "tests/test_openssh.py" 40 ]; 41 42 pythonImportsCheck = [ 43 "proxmoxer" 44 ]; 45 46 meta = with lib; { 47 description = "Python wrapper for Proxmox API v2"; 48 homepage = "https://github.com/proxmoxer/proxmoxer"; 49 changelog = "https://github.com/proxmoxer/proxmoxer/releases/tag/${version}"; 50 license = with licenses; [ bsd3 ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}