at master 983 B view raw
1{ 2 lib, 3 beautifulsoup4, 4 buildPythonPackage, 5 fetchFromGitHub, 6 html5lib, 7 lxml, 8 mock, 9 poetry-core, 10 pytestCheckHook, 11 pythonOlder, 12 requests, 13}: 14 15buildPythonPackage rec { 16 pname = "mf2py"; 17 version = "2.0.1"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "microformats"; 24 repo = "mf2py"; 25 tag = "v${version}"; 26 hash = "sha256-mhJ+s1rtXEJ6DqVmiyWNEK+3cdDLpR63Q4QGmD9wVio="; 27 }; 28 29 nativeBuildInputs = [ poetry-core ]; 30 31 propagatedBuildInputs = [ 32 beautifulsoup4 33 html5lib 34 requests 35 ]; 36 37 nativeCheckInputs = [ 38 lxml 39 mock 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "mf2py" ]; 44 45 meta = with lib; { 46 description = "Microformats2 parser written in Python"; 47 homepage = "https://microformats.org/wiki/mf2py"; 48 changelog = "https://github.com/microformats/mf2py/blob/v${version}/CHANGELOG.md"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ ambroisie ]; 51 }; 52}