Files
nixpkgs/pkgs/development/python-modules/anyconfig/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
1.1 KiB
Nix

{
buildPythonPackage,
fetchPypi,
lib,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "anyconfig";
version = "0.14.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-LN9Ur12ujpF0Pe2CxU7Z2Krvo6lyL11F6bX3S2A+AU0=";
};
postPatch = ''
sed -i '/addopts =/d' setup.cfg
'';
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"
"tests/backend/loaders/pickle/test_pickle_stdlib.py"
];
pythonImportsCheck = [ "anyconfig" ];
meta = {
description = "Python library provides common APIs to load and dump configuration files in various formats";
mainProgram = "anyconfig_cli";
homepage = "https://github.com/ssato/python-anyconfig";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ tboerger ];
};
}