defusedxml: 0.7.1 -> 0.8.0rc2
https://github.com/tiran/defusedxml/blob/v0.8.0rc2/CHANGES.txt
This commit is contained in:
@@ -1,27 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
lxml,
|
||||
python,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "defusedxml";
|
||||
version = "0.7.1";
|
||||
format = "setuptools";
|
||||
version = "0.8.0rc2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69";
|
||||
src = fetchFromGitHub {
|
||||
owner = "tiran";
|
||||
repo = "defusedxml";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-X88A5V9uXP3wJQ+olK6pZJT66LP2uCXLK8goa5bPARA=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ] ;
|
||||
|
||||
nativeCheckInputs = [ lxml ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} tests.py
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "defusedxml" ];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/tiran/defusedxml/blob/v${version}/CHANGES.txt";
|
||||
description = "Python module to defuse XML issues";
|
||||
homepage = "https://github.com/tiran/defusedxml";
|
||||
license = licenses.psfl;
|
||||
|
||||
Reference in New Issue
Block a user