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