3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/python-frontmatter/default.nix

37 lines
874 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildPythonPackage, pyyaml, six, pytest, pyaml }:
2020-11-14 15:24:02 +00:00
buildPythonPackage rec {
2020-11-14 15:24:02 +00:00
pname = "python-frontmatter";
version = "1.0.0";
2020-11-14 15:24:02 +00:00
src = fetchFromGitHub {
owner = "eyeseast";
repo = pname;
rev = "v${version}";
sha256 = "0flyh2pb0z4lq66dmmsgyakvg11yhkp4dk7qnzanl34z7ikp97bx";
2020-11-14 15:24:02 +00:00
};
propagatedBuildInputs = [
2020-11-14 15:24:02 +00:00
pyyaml
pyaml # yes, it's needed
2020-11-14 15:24:02 +00:00
six
];
# tries to import test.test, which conflicts with module
# exported by python interpreter
doCheck = false;
checkInputs = [
2020-11-14 15:24:02 +00:00
pytest
];
pythonImportsCheck = [ "frontmatter" ];
meta = with lib; {
2020-11-14 15:24:02 +00:00
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;
2020-11-14 15:24:02 +00:00
};
}