9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
36 lines
874 B
Nix
36 lines
874 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage, pyyaml, six, pytest, pyaml }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-frontmatter";
|
|
version = "1.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eyeseast";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0flyh2pb0z4lq66dmmsgyakvg11yhkp4dk7qnzanl34z7ikp97bx";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
pyaml # yes, it's needed
|
|
six
|
|
];
|
|
|
|
# tries to import test.test, which conflicts with module
|
|
# exported by python interpreter
|
|
doCheck = false;
|
|
checkInputs = [
|
|
pytest
|
|
];
|
|
|
|
pythonImportsCheck = [ "frontmatter" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/eyeseast/python-frontmatter";
|
|
description = "Parse and manage posts with YAML (or other) frontmatter";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ siraben ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|