python311Packages.headerparser: 0.4.0 -> 0.5.1
Diff: https://github.com/jwodder/headerparser/compare/refs/tags/v0.4.0...v0.5.1 Changelog: https://github.com/wheelodex/headerparser/blob/v0.5.1/CHANGELOG.md
This commit is contained in:
parent
6c701d1137
commit
9714b1bdf4
1 changed files with 12 additions and 16 deletions
|
@ -1,25 +1,26 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, attrs
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, deprecated
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, setuptools
|
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, six
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "headerparser";
|
pname = "headerparser";
|
||||||
version = "0.4.0";
|
version = "0.5.1";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jwodder";
|
owner = "jwodder";
|
||||||
repo = pname;
|
repo = "headerparser";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-KJJt85iC/4oBoIelB2zUJVyHSppFem/22v6F30P5nYM=";
|
hash = "sha256-CWXha7BYVO5JFuhWP8OZ95fhUsZ3Jo0cgPAM+O5bfec=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -27,7 +28,8 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
six
|
attrs
|
||||||
|
deprecated
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
@ -35,13 +37,6 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace tox.ini \
|
|
||||||
--replace "--cov=headerparser" "" \
|
|
||||||
--replace "--no-cov-on-fail" "" \
|
|
||||||
--replace "--flakes" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"headerparser"
|
"headerparser"
|
||||||
];
|
];
|
||||||
|
@ -49,6 +44,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Module to parse key-value pairs in the style of RFC 822 (e-mail) headers";
|
description = "Module to parse key-value pairs in the style of RFC 822 (e-mail) headers";
|
||||||
homepage = "https://github.com/jwodder/headerparser";
|
homepage = "https://github.com/jwodder/headerparser";
|
||||||
|
changelog = "https://github.com/wheelodex/headerparser/blob/v${version}/CHANGELOG.md";
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
maintainers = with maintainers; [ ayazhafiz ];
|
maintainers = with maintainers; [ ayazhafiz ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue