1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools-scm, 6 loguru, 7 mbstrdecoder, 8 pytestCheckHook, 9 pythonOlder, 10 tcolorpy, 11 termcolor, 12 typepy, 13}: 14 15buildPythonPackage rec { 16 pname = "dataproperty"; 17 version = "1.1.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "thombashi"; 24 repo = "dataproperty"; 25 tag = "v${version}"; 26 hash = "sha256-IEEwdOcC9nKwVumWnjpZlqYKCFGwZebMh7nGdGVjibE="; 27 }; 28 29 build-system = [ setuptools-scm ]; 30 31 dependencies = [ 32 mbstrdecoder 33 typepy 34 tcolorpy 35 ] 36 ++ typepy.optional-dependencies.datetime; 37 38 optional-dependencies = { 39 logging = [ loguru ]; 40 }; 41 42 nativeCheckInputs = [ 43 pytestCheckHook 44 termcolor 45 ]; 46 47 pythonImportsCheck = [ "dataproperty" ]; 48 49 meta = { 50 description = "Library for extracting properties from data"; 51 homepage = "https://github.com/thombashi/DataProperty"; 52 changelog = "https://github.com/thombashi/DataProperty/releases/tag/${src.tag}"; 53 license = lib.licenses.mit; 54 maintainers = with lib.maintainers; [ genericnerdyusername ]; 55 }; 56}