Merge pull request #218297 from fabaff/nestedtext-bump

python310Packages.nestedtext: 1.2 -> 3.5
This commit is contained in:
Fabian Affolter 2023-03-08 08:03:31 +01:00 committed by GitHub
commit 2169cb033e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 13 deletions

View File

@ -1,27 +1,68 @@
{ lib, buildPythonPackage, fetchFromGitHub
, inform
, pytestCheckHook
{ lib
, buildPythonPackage
, docopt
, natsort
, fetchFromGitHub
, flitBuildHook
, hypothesis
, inform
, nestedtext
, pytestCheckHook
, pythonOlder
, quantiphy
, voluptuous
}:
buildPythonPackage rec {
pname = "nestedtext";
version = "1.2";
version = "3.5";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "KenKundert";
repo = "nestedtext";
rev = "v${version}";
fetchSubmodules = true;
sha256 = "1dwks5apghg29aj90nc4qm0chk195jh881297zr1wk7mqd2n159y";
rev = "refs/tags/v${version}";
hash = "sha256-RGCcrGsDkBhThuUZd2LuuyXG9r1S7iOA75HYRxkwUrU=";
};
propagatedBuildInputs = [ inform ];
nativeBuildInputs = [
flitBuildHook
];
nativeCheckInputs = [ pytestCheckHook docopt natsort voluptuous ];
pytestFlagsArray = [ "--ignore=build" ]; # Avoids an ImportMismatchError.
propagatedBuildInputs = [
inform
];
nativeCheckInputs = [
docopt
hypothesis
quantiphy
pytestCheckHook
voluptuous
];
# Tests depend on quantiphy. To avoid infinite recursion, tests are only
# enabled when building passthru.tests.
doCheck = false;
pytestFlagsArray = [
# Avoids an ImportMismatchError.
"--ignore=build"
];
disabledTestPaths = [
# Examples are prefixed with test_
"examples/"
];
passthru.tests = {
runTests = nestedtext.overrideAttrs (_: { doCheck = true; });
};
pythonImportsCheck = [
"nestedtext"
];
meta = with lib; {
description = "A human friendly data format";
@ -37,6 +78,7 @@ buildPythonPackage rec {
non-programmers.
'';
homepage = "https://nestedtext.org";
changelog = "https://github.com/KenKundert/nestedtext/blob/v${version}/doc/releases.rst";
license = licenses.mit;
maintainers = with maintainers; [ jeremyschlatter ];
};

View File

@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchPypi {
inherit version;
pname = "parametrize_from_file";
sha256 = "1c91j869n2vplvhawxc1sv8km8l53bhlxhhms43fyjsqvy351v5j";
hash = "sha256-suxQht9YS+8G0RXCTuEahaI60daBda7gpncLmwySIbE=";
};
patches = [
@ -54,7 +54,14 @@ buildPythonPackage rec {
toml
];
pythonImportsCheck = [ "parametrize_from_file" ];
pythonImportsCheck = [
"parametrize_from_file"
];
disabledTests = [
# https://github.com/kalekundert/parametrize_from_file/issues/19
"test_load_suite_params_err"
];
meta = with lib; {
description = "Read unit test parameters from config files";