2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
lib,
|
2022-11-21 17:40:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-06-05 15:53:02 +00:00
|
|
|
pname = "prodict";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.8.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-11-21 17:40:18 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ramazanpolat";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-c46JEQFg4KRwerqpMSgh6+tYRpKTOX02Lzsq4/meS3o=";
|
|
|
|
};
|
|
|
|
|
|
|
|
# make setuptools happy on case-sensitive filesystems
|
|
|
|
postPatch = ''if [[ ! -f README.md ]]; then mv README.MD README.md; fi'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "prodict" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Access Python dictionary as a class with type hinting and autocompletion";
|
|
|
|
homepage = "https://github.com/ramazanpolat/prodict";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|