mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-14 03:50:21 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
44 lines
930 B
Nix
44 lines
930 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
pyyaml,
|
|
six,
|
|
pytest,
|
|
pyaml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-frontmatter";
|
|
version = "1.1.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eyeseast";
|
|
repo = "python-frontmatter";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-Sr0RbNVk87Zu01U7nkuPUSnl1bm6G72EZDP/eDn099s=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
pyaml # yes, it's needed
|
|
six
|
|
];
|
|
|
|
# tries to import test.test, which conflicts with module
|
|
# exported by python interpreter
|
|
doCheck = false;
|
|
nativeCheckInputs = [ pytest ];
|
|
|
|
pythonImportsCheck = [ "frontmatter" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/eyeseast/python-frontmatter";
|
|
description = "Parse and manage posts with YAML (or other) frontmatter";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ siraben ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|