1{ lib, fetchFromGitHub, buildPythonPackage, pyyaml, six, pytest, pyaml }:
2
3buildPythonPackage rec {
4 pname = "python-frontmatter";
5 version = "1.0.0";
6
7 src = fetchFromGitHub {
8 owner = "eyeseast";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "0flyh2pb0z4lq66dmmsgyakvg11yhkp4dk7qnzanl34z7ikp97bx";
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 checkInputs = [
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}