summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/headerparser/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/headerparser/default.nix')
-rw-r--r--pkgs/development/python-modules/headerparser/default.nix28
1 files changed, 12 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/headerparser/default.nix b/pkgs/development/python-modules/headerparser/default.nix
index 550e5e9a4626..71cad63ef70f 100644
--- a/pkgs/development/python-modules/headerparser/default.nix
+++ b/pkgs/development/python-modules/headerparser/default.nix
@@ -1,25 +1,26 @@
{ lib
+, attrs
, buildPythonPackage
+, deprecated
, fetchFromGitHub
-, setuptools
, pytest-mock
, pytestCheckHook
, pythonOlder
-, six
+, setuptools
}:
buildPythonPackage rec {
pname = "headerparser";
- version = "0.4.0";
- format = "pyproject";
+ version = "0.5.1";
+ pyproject = true;
- disabled = pythonOlder "3.6";
+ disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jwodder";
- repo = pname;
- rev = "v${version}";
- hash = "sha256-KJJt85iC/4oBoIelB2zUJVyHSppFem/22v6F30P5nYM=";
+ repo = "headerparser";
+ rev = "refs/tags/v${version}";
+ hash = "sha256-CWXha7BYVO5JFuhWP8OZ95fhUsZ3Jo0cgPAM+O5bfec=";
};
nativeBuildInputs = [
@@ -27,7 +28,8 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
- six
+ attrs
+ deprecated
];
nativeCheckInputs = [
@@ -35,13 +37,6 @@ buildPythonPackage rec {
pytestCheckHook
];
- postPatch = ''
- substituteInPlace tox.ini \
- --replace "--cov=headerparser" "" \
- --replace "--no-cov-on-fail" "" \
- --replace "--flakes" ""
- '';
-
pythonImportsCheck = [
"headerparser"
];
@@ -49,6 +44,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Module to parse key-value pairs in the style of RFC 822 (e-mail) headers";
homepage = "https://github.com/jwodder/headerparser";
+ changelog = "https://github.com/wheelodex/headerparser/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
maintainers = with maintainers; [ ayazhafiz ];
};