Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-frontmatter / default.nix
blobeab892f4928358acbf2715fe8025451fedf645cc
1 { lib, fetchFromGitHub, buildPythonPackage, pyyaml, six, pytest, pyaml }:
3 buildPythonPackage rec {
4   pname = "python-frontmatter";
5   version = "1.1.0";
6   format = "setuptools";
8   src = fetchFromGitHub {
9     owner = "eyeseast";
10     repo = pname;
11     rev = "refs/tags/v${version}";
12     sha256 = "sha256-Sr0RbNVk87Zu01U7nkuPUSnl1bm6G72EZDP/eDn099s=";
13   };
15   propagatedBuildInputs = [
16     pyyaml
17     pyaml # yes, it's needed
18     six
19   ];
21   # tries to import test.test, which conflicts with module
22   # exported by python interpreter
23   doCheck = false;
24   nativeCheckInputs = [
25     pytest
26   ];
28   pythonImportsCheck = [ "frontmatter" ];
30   meta = with lib; {
31     homepage = "https://github.com/eyeseast/python-frontmatter";
32     description = "Parse and manage posts with YAML (or other) frontmatter";
33     license = licenses.mit;
34     maintainers = with maintainers; [ siraben ];
35     platforms = platforms.unix;
36   };