python310Packages.defusedcsv: init at 2.0.0

This commit is contained in:
Martin Weinelt 2023-05-07 22:32:03 +02:00
parent 8fe90f5986
commit d7550058e0
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "defusedcsv";
version = "2.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "raphaelm";
repo = "defusedcsv";
rev = "refs/tags/v${version}";
hash = "sha256-y8qLVfdkxRrDjtrTOLK5Zvi/1Vyv8eOnCueUkaRp4sQ=";
};
pythonImportsCheck = [
"defusedcsv.csv"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Python library to protect your users from Excel injections in CSV-format exports, drop-in replacement for standard library's csv module";
homepage = "https://github.com/raphaelm/defusedcsv";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -2408,6 +2408,8 @@ self: super: with self; {
deform = callPackage ../development/python-modules/deform { };
defusedcsv = callPackage ../development/python-modules/defusedcsv { };
defusedxml = callPackage ../development/python-modules/defusedxml { };
deid = callPackage ../development/python-modules/deid { };