From a2100d3c78121cf723944f97319426c6d4d019b8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 6 Mar 2021 13:55:19 +0100 Subject: [PATCH 1/2] python3Packages.defusedxml: 0.6.0 -> 0.7.0 --- pkgs/development/python-modules/defusedxml/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/defusedxml/default.nix b/pkgs/development/python-modules/defusedxml/default.nix index 581a6cce9b2a..691d1783af0e 100644 --- a/pkgs/development/python-modules/defusedxml/default.nix +++ b/pkgs/development/python-modules/defusedxml/default.nix @@ -2,10 +2,10 @@ buildPythonPackage rec { pname = "defusedxml"; - version = "0.6.0"; + version = "0.7.0"; src = fetchPypi { inherit pname version; - sha256 = "f684034d135af4c6cbb949b8a4d2ed61634515257a67299e5f940fbaa34377f5"; + sha256 = "sha256-hrFdnjxjneefTLOK7/6jKB9ir/eN3n15jhNSxjv6bqA="; }; } From 9001fbc439737a68d9fdb2dc12e1114bd4c4d906 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 6 Mar 2021 14:12:11 +0100 Subject: [PATCH 2/2] python3Packages.defusedxml: add meta --- .../python-modules/defusedxml/default.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/defusedxml/default.nix b/pkgs/development/python-modules/defusedxml/default.nix index 691d1783af0e..3abdd0fb792e 100644 --- a/pkgs/development/python-modules/defusedxml/default.nix +++ b/pkgs/development/python-modules/defusedxml/default.nix @@ -1,11 +1,25 @@ -{ buildPythonPackage, fetchPypi }: +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +}: buildPythonPackage rec { pname = "defusedxml"; version = "0.7.0"; + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "sha256-hrFdnjxjneefTLOK7/6jKB9ir/eN3n15jhNSxjv6bqA="; + sha256 = "183fz8xwclhkirwpvpldyypn47r8lgzfz2mk9jgyg7b37jg5vcc6"; + }; + + pythonImportsCheck = [ "defusedxml" ]; + + meta = with lib; { + description = "Python module to defuse XML issues"; + homepage = "https://github.com/tiran/defusedxml"; + license = licenses.psfl; + maintainers = with maintainers; [ fab ]; }; }