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