Merge pull request #182967 from onny/tomlkit
python3Packages.tomlkit: Enable tests
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user