depot/third_party/nixpkgs/pkgs/development/python-modules/python-frontmatter/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
923 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 = pname;
rev = "refs/tags/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 = 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;
};
}