2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
2024-01-02 11:29:13 +00:00
|
|
|
, attrs
|
2021-12-06 16:07:01 +00:00
|
|
|
, buildPythonPackage
|
2024-01-02 11:29:13 +00:00
|
|
|
, deprecated
|
2022-06-16 17:23:12 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "headerparser";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.5.1";
|
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jwodder";
|
2024-01-02 11:29:13 +00:00
|
|
|
repo = "headerparser";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-CWXha7BYVO5JFuhWP8OZ95fhUsZ3Jo0cgPAM+O5bfec=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
attrs
|
|
|
|
deprecated
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"headerparser"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
description = "Module to parse key-value pairs in the style of RFC 822 (e-mail) headers";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/jwodder/headerparser";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/wheelodex/headerparser/blob/v${version}/CHANGELOG.md";
|
2021-12-06 16:07:01 +00:00
|
|
|
license = with licenses; [ mit ];
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ ayazhafiz ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|