1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "pyhumps";
11 version = "3.8.0";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "nficano";
18 repo = "humps";
19 rev = "v${version}";
20 hash = "sha256-ElL/LY2V2Z3efdV5FnDy9dSoBltULrzxsjaOx+7W9Oo=";
21 };
22
23 nativeBuildInputs = [
24 poetry-core
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "humps"
33 ];
34
35 meta = with lib; {
36 description = "Module to convert strings (and dictionary keys) between snake case, camel case and pascal case";
37 homepage = "https://github.com/nficano/humps";
38 license = with licenses; [ unlicense ];
39 maintainers = with maintainers; [ fab ];
40 };
41}