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 ] ++ typepy.optional-dependencies.datetime; 36 37 optional-dependencies = { 38 logging = [ loguru ]; 39 }; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 termcolor 44 ]; 45 46 pythonImportsCheck = [ "dataproperty" ]; 47 48 meta = { 49 description = "Library for extracting properties from data"; 50 homepage = "https://github.com/thombashi/DataProperty"; 51 changelog = "https://github.com/thombashi/DataProperty/releases/tag/${src.tag}"; 52 license = lib.licenses.mit; 53 maintainers = with lib.maintainers; [ genericnerdyusername ]; 54 }; 55}