nixpkgs/pkgs/development/python-modules/defusedcsv/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

32 lines
758 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "defusedcsv";
version = "3.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "raphaelm";
repo = "defusedcsv";
tag = "v${version}";
hash = "sha256-OEDZbltnh2tAM58Kk852W0so7oOSv7S+S046MjIOMfY=";
};
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 ];
};
}