mastodon: 4.3.1 -> 4.3.2 (#361487)
[NixPkgs.git] / pkgs / development / python-modules / defusedcsv / default.nix
blobbb62a9a7f997c7308f84b7dbe9c502576f0dc898
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # tests
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "defusedcsv";
12   version = "2.0.0";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "raphaelm";
17     repo = "defusedcsv";
18     rev = "refs/tags/v${version}";
19     hash = "sha256-y8qLVfdkxRrDjtrTOLK5Zvi/1Vyv8eOnCueUkaRp4sQ=";
20   };
22   pythonImportsCheck = [ "defusedcsv.csv" ];
24   nativeCheckInputs = [ pytestCheckHook ];
26   meta = with lib; {
27     description = "Python library to protect your users from Excel injections in CSV-format exports, drop-in replacement for standard library's csv module";
28     homepage = "https://github.com/raphaelm/defusedcsv";
29     license = licenses.asl20;
30     maintainers = with maintainers; [ hexa ];
31   };