diff options
author | Mx Kookie <kookie@spacekookie.de> | 2020-12-09 18:55:19 +0000 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2020-12-09 18:55:19 +0000 |
commit | 80d90d9b204f7c17912740f9f414fe5d59f293ba (patch) | |
tree | 5f2065a06e724270610760d59d01c6888b375a46 /infra/libkookie/nixpkgs/pkgs/development/python-modules/pywbem/default.nix | |
parent | 3a31a84c7d3e589035ad08499206aac44a81f424 (diff) | |
parent | 83cbad92d73216bb0d9187c56cce0b91f9121d5a (diff) |
Merge commit '83cbad92d73216bb0d9187c56cce0b91f9121d5a' into main
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/pywbem/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/pywbem/default.nix | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pywbem/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pywbem/default.nix index 345908031ccf..698e4ef94ca3 100644 --- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pywbem/default.nix +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pywbem/default.nix @@ -1,53 +1,44 @@ { lib, buildPythonPackage, fetchPypi, libxml2 , m2crypto, ply, pyyaml, six, pbr, pythonOlder, isPy37 +, nocasedict, nocaselist, yamlloader, requests-mock , httpretty, lxml, mock, pytest, requests, decorator, unittest2 +, FormEncode, testfixtures, pytz }: buildPythonPackage rec { pname = "pywbem"; - version = "1.0.2"; - - # Support added in master https://github.com/pywbem/pywbem/commit/b2f2f1a151a30355bbc6652dca69a7b30bfe941e awaiting release - disabled = isPy37; + version = "1.1.2"; src = fetchPypi { inherit pname version; - sha256 = "66d8ec82d30f2b95d8b4bd51659429066c2879d3f46292561f5fdbc7fed10f3d"; + sha256 = "9GpxbgNsXZJj2M5MvosNnEe+9pY+Qz64RD/7ZIDqmII="; }; propagatedBuildInputs = [ mock + nocasedict + nocaselist pbr ply pyyaml six + yamlloader ] ++ lib.optionals (pythonOlder "3.0") [ m2crypto ]; checkInputs = [ decorator + FormEncode httpretty libxml2 lxml pytest + pytz requests + requests-mock + testfixtures unittest2 ]; - postPatch = '' - # Uses deprecated library yamlordereddictloader - rm testsuite/test_client.py - - # Wants `wbemcli` in PATH - rm testsuite/test_wbemcli.py - - # Disables tests that use testfixtures which is currently broken by nonbuilding zope_component - rm testsuite/{test_logging,test_recorder,test_wbemconnection_mock}.* - ''; - - checkPhase = '' - pytest testsuite/ - ''; - meta = with lib; { description = "Support for the WBEM standard for systems management"; homepage = "https://pywbem.github.io"; |