Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / headerparser / default.nix
blob71cad63ef70f7b0a5e452312d7f43c2913453366
1 { lib
2 , attrs
3 , buildPythonPackage
4 , deprecated
5 , fetchFromGitHub
6 , pytest-mock
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
12 buildPythonPackage rec {
13   pname = "headerparser";
14   version = "0.5.1";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "jwodder";
21     repo = "headerparser";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-CWXha7BYVO5JFuhWP8OZ95fhUsZ3Jo0cgPAM+O5bfec=";
24   };
26   nativeBuildInputs = [
27     setuptools
28   ];
30   propagatedBuildInputs = [
31     attrs
32     deprecated
33   ];
35   nativeCheckInputs = [
36     pytest-mock
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "headerparser"
42   ];
44   meta = with lib; {
45     description = "Module to parse key-value pairs in the style of RFC 822 (e-mail) headers";
46     homepage = "https://github.com/jwodder/headerparser";
47     changelog = "https://github.com/wheelodex/headerparser/blob/v${version}/CHANGELOG.md";
48     license = with licenses; [ mit ];
49     maintainers = with maintainers; [ ayazhafiz ];
50   };