Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 loguru, 6 mbstrdecoder, 7 pytestCheckHook, 8 pythonOlder, 9 tcolorpy, 10 termcolor, 11 typepy, 12}: 13 14buildPythonPackage rec { 15 pname = "dataproperty"; 16 version = "1.0.1"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "thombashi"; 23 repo = pname; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-adUxUU9eASkC9n5ppZYNN0MP19u4xcL8XziBWSCp2L8="; 26 }; 27 28 propagatedBuildInputs = [ 29 mbstrdecoder 30 typepy 31 tcolorpy 32 ] ++ typepy.optional-dependencies.datetime; 33 34 passthru.optional-dependencies = { 35 logging = [ loguru ]; 36 }; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 termcolor 41 ]; 42 43 pythonImportsCheck = [ "dataproperty" ]; 44 45 meta = with lib; { 46 description = "Library for extracting properties from data"; 47 homepage = "https://github.com/thombashi/dataproperty"; 48 changelog = "https://github.com/thombashi/DataProperty/releases/tag/v${version}"; 49 license = licenses.mit; 50 maintainers = with maintainers; [ genericnerdyusername ]; 51 }; 52}