Files
nixpkgs/pkgs/development/python-modules/defusedcsv/default.nix

36 lines
822 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
# tests
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "defusedcsv";
version = "3.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "raphaelm";
repo = "defusedcsv";
tag = "v${finalAttrs.version}";
hash = "sha256-OEDZbltnh2tAM58Kk852W0so7oOSv7S+S046MjIOMfY=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "defusedcsv.csv" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
};
})