nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 60 lines 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 paramiko, 6 pytestCheckHook, 7 requests, 8 requests-toolbelt, 9 responses, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "proxmoxer"; 15 version = "2.3.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "proxmoxer"; 20 repo = "proxmoxer"; 21 rev = "cf1bcde696537c74ef00d8e71fb86735fb4c2c79"; 22 hash = "sha256-h5Sla7/4XiZSGwKstyiqs/T2Qgi13jI9YMVPqDcF3sA="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ 28 paramiko 29 requests 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 requests-toolbelt 35 responses 36 ]; 37 38 disabledTestPaths = [ 39 # Tests require openssh_wrapper which is outdated and not available 40 "tests/test_openssh.py" 41 ]; 42 43 disabledTests = [ 44 # Tests require openssh_wrapper which is outdated and not available 45 "test_repr_openssh" 46 47 # Test fails randomly 48 "test_timeout" 49 ]; 50 51 pythonImportsCheck = [ "proxmoxer" ]; 52 53 meta = { 54 description = "Python wrapper for Proxmox API v2"; 55 homepage = "https://github.com/proxmoxer/proxmoxer"; 56 changelog = "https://github.com/proxmoxer/proxmoxer/releases/tag/${version}"; 57 license = with lib.licenses; [ bsd3 ]; 58 maintainers = with lib.maintainers; [ fab ]; 59 }; 60}