python3Packages.python-frontmatter: fix expression, fix build

This commit is contained in:
Jonathan Ringer 2021-04-21 10:49:19 -07:00 committed by Jonathan Ringer
parent 2094cc3f30
commit 38987c05ef

View File

@ -1,6 +1,6 @@
{ lib, fetchFromGitHub, python3Packages }: { lib, fetchFromGitHub, buildPythonPackage, pyyaml, six, pytest, pyaml }:
python3Packages.buildPythonPackage rec { buildPythonPackage rec {
pname = "python-frontmatter"; pname = "python-frontmatter";
version = "1.0.0"; version = "1.0.0";
@ -11,20 +11,26 @@ python3Packages.buildPythonPackage rec {
sha256 = "0flyh2pb0z4lq66dmmsgyakvg11yhkp4dk7qnzanl34z7ikp97bx"; sha256 = "0flyh2pb0z4lq66dmmsgyakvg11yhkp4dk7qnzanl34z7ikp97bx";
}; };
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = [
pyyaml pyyaml
pyaml # yes, it's needed
six six
]; ];
checkInputs = with python3Packages; [ # tries to import test.test, which conflicts with module
# exported by python interpreter
doCheck = false;
checkInputs = [
pytest pytest
]; ];
pythonImportsCheck = [ "frontmatter" ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/eyeseast/python-frontmatter"; homepage = "https://github.com/eyeseast/python-frontmatter";
description = "Parse and manage posts with YAML (or other) frontmatter"; description = "Parse and manage posts with YAML (or other) frontmatter";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ siraben ]; maintainers = with maintainers; [ siraben ];
platforms = lib.platforms.unix; platforms = platforms.unix;
}; };
} }