nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 51 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, poetry-core 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "pyhumps"; 12 version = "3.7.1"; 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-MxynGgl0bgRUNPdyGqtEpIo1OFEKsSfXFiG4lAL0aPQ="; 22 }; 23 24 nativeBuildInputs = [ 25 poetry-core 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 patches = [ 33 # Fix naming, https://github.com/nficano/humps/pull/246 34 (fetchpatch { 35 name = "fix-naming.patch"; 36 url = "https://github.com/nficano/humps/commit/04739529247ec6c6715a0242a209863d8c66a24d.patch"; 37 sha256 = "sha256-6nCKO8BHSPXuT5pE/T/6Dsb6qKVdtRV22Ijbbgtm6ao="; 38 }) 39 ]; 40 41 pythonImportsCheck = [ 42 "humps" 43 ]; 44 45 meta = with lib; { 46 description = "Module to convert strings (and dictionary keys) between snake case, camel case and pascal case"; 47 homepage = "https://github.com/nficano/humps"; 48 license = with licenses; [ unlicense ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}