1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchFromGitHub, 6 poetry-core, 7 pytest-cov-stub, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11 propcache, 12}: 13 14buildPythonPackage rec { 15 pname = "cached-ipaddress"; 16 version = "0.10.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchFromGitHub { 22 owner = "bdraco"; 23 repo = "cached-ipaddress"; 24 tag = "v${version}"; 25 hash = "sha256-g6ffp08SXckCJthGICeuEqZ71XeLklKmz6Ziz/AHBOg="; 26 }; 27 28 build-system = [ 29 cython 30 poetry-core 31 setuptools 32 ]; 33 34 dependencies = [ propcache ]; 35 36 nativeCheckInputs = [ 37 pytest-cov-stub 38 pytestCheckHook 39 ]; 40 41 pythonImportsCheck = [ "cached_ipaddress" ]; 42 43 meta = with lib; { 44 description = "Cache construction of ipaddress objects"; 45 homepage = "https://github.com/bdraco/cached-ipaddress"; 46 changelog = "https://github.com/bdraco/cached-ipaddress/blob/${src.rev}/CHANGELOG.md"; 47 license = licenses.mit; 48 maintainers = [ ]; 49 }; 50}