Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / defusedcsv / default.nix
blob5e44ce731748ac6ad0f142d3c69dd6af851575b5
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # tests
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "defusedcsv";
11   version =  "2.0.0";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "raphaelm";
16     repo = "defusedcsv";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-y8qLVfdkxRrDjtrTOLK5Zvi/1Vyv8eOnCueUkaRp4sQ=";
19   };
21   pythonImportsCheck = [
22     "defusedcsv.csv"
23   ];
25   nativeCheckInputs = [
26     pytestCheckHook
27   ];
29   meta = with lib; {
30     description = "Python library to protect your users from Excel injections in CSV-format exports, drop-in replacement for standard library's csv module";
31     homepage = "https://github.com/raphaelm/defusedcsv";
32     license = licenses.asl20;
33     maintainers = with maintainers; [ hexa ];
34   };