1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # tests
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "defusedcsv";
12 version = "3.0.0";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "raphaelm";
17 repo = "defusedcsv";
18 tag = "v${version}";
19 hash = "sha256-OEDZbltnh2tAM58Kk852W0so7oOSv7S+S046MjIOMfY=";
20 };
21
22 pythonImportsCheck = [ "defusedcsv.csv" ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 meta = with lib; {
27 description = "Python library to protect your users from Excel injections in CSV-format exports, drop-in replacement for standard library's csv module";
28 homepage = "https://github.com/raphaelm/defusedcsv";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ hexa ];
31 };
32}