python3Packages.python-frontmatter: fix expression, fix build
This commit is contained in:
parent
2094cc3f30
commit
38987c05ef
@ -1,6 +1,6 @@
|
||||
{ lib, fetchFromGitHub, python3Packages }:
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, pyyaml, six, pytest, pyaml }:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
buildPythonPackage rec {
|
||||
pname = "python-frontmatter";
|
||||
version = "1.0.0";
|
||||
|
||||
@ -11,20 +11,26 @@ python3Packages.buildPythonPackage rec {
|
||||
sha256 = "0flyh2pb0z4lq66dmmsgyakvg11yhkp4dk7qnzanl34z7ikp97bx";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
propagatedBuildInputs = [
|
||||
pyyaml
|
||||
pyaml # yes, it's needed
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = with python3Packages; [
|
||||
# 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 = lib.platforms.unix;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user