lol

python3Packages.python-frontmatter: fix expression, fix build

authored by

Jonathan Ringer and committed by
Jonathan Ringer
38987c05 2094cc3f

+11 -5
+11 -5
pkgs/development/python-modules/python-frontmatter/default.nix
··· 1 - { lib, fetchFromGitHub, python3Packages }: 1 + { lib, fetchFromGitHub, buildPythonPackage, pyyaml, six, pytest, pyaml }: 2 2 3 - python3Packages.buildPythonPackage rec { 3 + buildPythonPackage rec { 4 4 pname = "python-frontmatter"; 5 5 version = "1.0.0"; 6 6 ··· 11 11 sha256 = "0flyh2pb0z4lq66dmmsgyakvg11yhkp4dk7qnzanl34z7ikp97bx"; 12 12 }; 13 13 14 - propagatedBuildInputs = with python3Packages; [ 14 + propagatedBuildInputs = [ 15 15 pyyaml 16 + pyaml # yes, it's needed 16 17 six 17 18 ]; 18 19 19 - checkInputs = with python3Packages; [ 20 + # tries to import test.test, which conflicts with module 21 + # exported by python interpreter 22 + doCheck = false; 23 + checkInputs = [ 20 24 pytest 21 25 ]; 22 26 27 + pythonImportsCheck = [ "frontmatter" ]; 28 + 23 29 meta = with lib; { 24 30 homepage = "https://github.com/eyeseast/python-frontmatter"; 25 31 description = "Parse and manage posts with YAML (or other) frontmatter"; 26 32 license = licenses.mit; 27 33 maintainers = with maintainers; [ siraben ]; 28 - platforms = lib.platforms.unix; 34 + platforms = platforms.unix; 29 35 }; 30 36 }