Files
nixpkgs/pkgs/development/python-modules/munch/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

54 lines
960 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# build-system
pbr,
setuptools,
# tests
pytestCheckHook,
pyyaml,
}:
buildPythonPackage rec {
pname = "munch";
version = "4.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Infinidat";
repo = "munch";
tag = version;
hash = "sha256-p7DvOGRhkCmtJ32EfttyKXGGmO5kfb2bQGqok/RJtU8=";
};
patches = [
(fetchpatch2 {
# python3.13 compat
url = "https://github.com/Infinidat/munch/commit/84651ee872f9ea6dbaed986fd3818202933a8b50.patch";
hash = "sha256-n/uBAP7pnlGZcnDuxdMKWgAEdG9gWeGoLWB97T1KloY=";
})
];
env.PBR_VERSION = version;
nativeBuildInputs = [
pbr
setuptools
];
nativeCheckInputs = [
pytestCheckHook
pyyaml
];
meta = {
description = "Dot-accessible dictionary (a la JavaScript objects)";
license = lib.licenses.mit;
homepage = "https://github.com/Infinidat/munch";
};
}