nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "pyhumps";
11 version = "3.9.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "nficano";
16 repo = "humps";
17 tag = "v${version}";
18 hash = "sha256-PvfjW56UVCcjd2jJiQW/goVJ1BC8xQ973xuZ6izwclw=";
19 };
20
21 nativeBuildInputs = [ poetry-core ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "humps" ];
26
27 meta = {
28 description = "Module to convert strings (and dictionary keys) between snake case, camel case and pascal case";
29 homepage = "https://github.com/nficano/humps";
30 license = with lib.licenses; [ unlicense ];
31 maintainers = with lib.maintainers; [ fab ];
32 };
33}