Merge pull request #182967 from onny/tomlkit

python3Packages.tomlkit: Enable tests
This commit is contained in:
Robert Scott
2022-07-28 22:27:21 +01:00
committed by GitHub
@@ -1,5 +1,11 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
, enum34, functools32, typing ? null
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, enum34
, functools32, typing ? null
, pytestCheckHook
, pyaml
}:
buildPythonPackage rec {
@@ -15,10 +21,12 @@ buildPythonPackage rec {
lib.optionals isPy27 [ enum34 functools32 ]
++ lib.optional isPy27 typing;
# The Pypi tarball doesn't include tests, and the GitHub source isn't
# buildable until we bootstrap poetry, see
# https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665
doCheck = false;
checkInputs = [
pyaml
pytestCheckHook
];
pythonImportsCheck = [ "tomlkit" ];
meta = with lib; {
homepage = "https://github.com/sdispater/tomlkit";