Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 attrs, 4 buildPythonPackage, 5 deprecated, 6 fetchFromGitHub, 7 pytest-mock, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "headerparser"; 15 version = "0.5.1"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "jwodder"; 22 repo = "headerparser"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-CWXha7BYVO5JFuhWP8OZ95fhUsZ3Jo0cgPAM+O5bfec="; 25 }; 26 27 nativeBuildInputs = [ setuptools ]; 28 29 propagatedBuildInputs = [ 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}