1{ 2 lib, 3 attrs, 4 buildPythonPackage, 5 deprecated, 6 fetchFromGitHub, 7 hatchling, 8 pytest-mock, 9 pytestCheckHook, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "headerparser"; 15 version = "0.5.2"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "jwodder"; 22 repo = "headerparser"; 23 tag = "v${version}"; 24 hash = "sha256-fn9Nlazte6r5JMmp9ynq0qmkLEoJGv8witgZlD7zJNM="; 25 }; 26 27 build-system = [ hatchling ]; 28 29 dependencies = [ 30 attrs 31 deprecated 32 ]; 33 34 nativeCheckInputs = [ 35 pytest-mock 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "headerparser" ]; 40 41 meta = with lib; { 42 description = "Module to parse key-value pairs in the style of RFC 822 (e-mail) headers"; 43 homepage = "https://github.com/jwodder/headerparser"; 44 changelog = "https://github.com/wheelodex/headerparser/blob/v${version}/CHANGELOG.md"; 45 license = with licenses; [ mit ]; 46 maintainers = with maintainers; [ ayazhafiz ]; 47 }; 48}