1{ lib, fetchFromGitHub, buildPythonPackage, pyyaml, six, pytest, pyaml }: 2 3buildPythonPackage rec { 4 pname = "python-frontmatter"; 5 version = "1.0.1"; 6 7 src = fetchFromGitHub { 8 owner = "eyeseast"; 9 repo = pname; 10 rev = "refs/tags/v${version}"; 11 sha256 = "sha256-lkBCKZ1fZF580+4TnHYkfaGJjsWk7/Ksnk7VagZuef8="; 12 }; 13 14 propagatedBuildInputs = [ 15 pyyaml 16 pyaml # yes, it's needed 17 six 18 ]; 19 20 # tries to import test.test, which conflicts with module 21 # exported by python interpreter 22 doCheck = false; 23 nativeCheckInputs = [ 24 pytest 25 ]; 26 27 pythonImportsCheck = [ "frontmatter" ]; 28 29 meta = with lib; { 30 homepage = "https://github.com/eyeseast/python-frontmatter"; 31 description = "Parse and manage posts with YAML (or other) frontmatter"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ siraben ]; 34 platforms = platforms.unix; 35 }; 36}