nixpkgs-suyu/pkgs/development/python-modules/anyconfig/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

49 lines
1 KiB
Nix

{ buildPythonPackage
, fetchPypi
, lib
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "anyconfig";
version = "0.13.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-A/8uF2KvOI+7vtHBq3+fHsAGqR2n2zpouWPabneV0qw=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=src -vv" ""
'';
propagatedBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# OSError: /build/anyconfig-0.12.0/tests/res/cli/no_template/10/e/10.* should exists but not
"test_runs_for_datasets"
];
disabledTestPaths = [
# NameError: name 'TT' is not defined
"tests/schema/test_jsonschema.py"
];
pythonImportsCheck = [ "anyconfig" ];
meta = with lib; {
description = "Python library provides common APIs to load and dump configuration files in various formats";
homepage = "https://github.com/ssato/python-anyconfig";
license = licenses.mit;
maintainers = with maintainers; [ tboerger ];
};
}