mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
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>
32 lines
758 B
Nix
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 ];
|
|
};
|
|
}
|