nixpkgs/pkgs/development/python-modules/pyhumps/default.nix
2022-08-26 14:33:18 +02:00

41 lines
803 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyhumps";
version = "3.7.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nficano";
repo = "humps";
rev = "v${version}";
hash = "sha256-7jkwf4qGQ+AD4/hOrEe/oAPY+gnSySUVBWFf70rU7xc=";
};
nativeBuildInputs = [
poetry-core
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"humps"
];
meta = with lib; {
description = "Module to convert strings (and dictionary keys) between snake case, camel case and pascal case";
homepage = "https://github.com/nficano/humps";
license = with licenses; [ unlicense ];
maintainers = with maintainers; [ fab ];
};
}