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