depot/third_party/nixpkgs/pkgs/development/python-modules/defusedcsv/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

32 lines
770 B
Nix

{
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 ];
};
}