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

50 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pydantic,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "camel-converter";
version = "5.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "sanders41";
repo = "camel-converter";
tag = "v${version}";
hash = "sha256-ADjgs72+tzMUdg2OS2bs1sMb0kMgVqBlUfYo+RRtsvg=";
};
build-system = [ hatchling ];
optional-dependencies = {
pydantic = [ pydantic ];
};
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
]
++ optional-dependencies.pydantic;
pythonImportsCheck = [ "camel_converter" ];
disabledTests = [
# AttributeError: 'Test' object has no attribute 'model_dump'
"test_camel_config"
];
meta = {
description = "Module to convert strings from snake case to camel case or camel case to snake case";
homepage = "https://github.com/sanders41/camel-converter";
changelog = "https://github.com/sanders41/camel-converter/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}