nixpkgs/pkgs/development/python-modules/headerparser/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1018 B
Nix
Raw Normal View History

2021-11-01 01:44:39 +00:00
{ lib
, attrs
2021-11-01 01:44:39 +00:00
, buildPythonPackage
, deprecated
, fetchFromGitHub
, pytest-mock
, pytestCheckHook
, pythonOlder
, setuptools
2021-11-01 01:44:39 +00:00
}:
buildPythonPackage rec {
pname = "headerparser";
version = "0.5.1";
pyproject = true;
2021-11-01 01:44:39 +00:00
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jwodder";
repo = "headerparser";
rev = "refs/tags/v${version}";
hash = "sha256-CWXha7BYVO5JFuhWP8OZ95fhUsZ3Jo0cgPAM+O5bfec=";
2021-11-01 01:44:39 +00:00
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
attrs
deprecated
2021-11-01 01:44:39 +00:00
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"headerparser"
];
2021-11-01 01:44:39 +00:00
meta = with lib; {
description = "Module to parse key-value pairs in the style of RFC 822 (e-mail) headers";
2021-11-01 01:44:39 +00:00
homepage = "https://github.com/jwodder/headerparser";
changelog = "https://github.com/wheelodex/headerparser/blob/v${version}/CHANGELOG.md";
2021-11-01 01:44:39 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ ayazhafiz ];
2021-11-01 01:44:39 +00:00
};
}