nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 85 lines 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 decorator, 5 fetchPypi, 6 setuptools, 7 setuptools-scm, 8 formencode, 9 httpretty, 10 libxml2, 11 lxml, 12 mock, 13 nocasedict, 14 nocaselist, 15 pbr, 16 ply, 17 pytestCheckHook, 18 pytz, 19 pyyaml, 20 requests, 21 requests-mock, 22 six, 23 testfixtures, 24 yamlloader, 25}: 26 27buildPythonPackage rec { 28 pname = "pywbem"; 29 version = "1.9.0"; 30 pyproject = true; 31 32 src = fetchPypi { 33 inherit pname version; 34 hash = "sha256-ZcH/lyzqLwF7BnlfR8CtdEL4Q0/2Q6VEBQwQcmcE9qs="; 35 }; 36 37 postPatch = '' 38 substituteInPlace pyproject.toml \ 39 --replace-fail "setuptools-scm>=9.2.0" "setuptools-scm" 40 ''; 41 42 build-system = [ 43 setuptools 44 setuptools-scm 45 ]; 46 47 propagatedBuildInputs = [ 48 mock 49 nocasedict 50 nocaselist 51 pbr 52 ply 53 pyyaml 54 requests 55 six 56 yamlloader 57 ]; 58 59 nativeCheckInputs = [ 60 decorator 61 formencode 62 httpretty 63 libxml2 64 lxml 65 pytestCheckHook 66 pytz 67 requests-mock 68 testfixtures 69 ]; 70 71 pythonImportsCheck = [ "pywbem" ]; 72 73 disabledTestPaths = [ 74 "tests/leaktest" # requires 'yagot' 75 "tests/end2endtest" # requires 'pytest_easy_server' 76 ]; 77 78 meta = { 79 description = "Support for the WBEM standard for systems management"; 80 homepage = "https://pywbem.github.io"; 81 changelog = "https://github.com/pywbem/pywbem/blob/${version}/docs/changes.rst"; 82 license = lib.licenses.lgpl21Plus; 83 maintainers = [ ]; 84 }; 85}