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