at master 939 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 redis, 7 redisTestHook, 8 setuptools, 9 unittestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "walrus"; 14 version = "0.9.5"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "coleifer"; 21 repo = "walrus"; 22 tag = version; 23 hash = "sha256-iZe0jqIzbGKjkhlVwJQXPz9UTBzLcnnO2IuKa3sHaMw="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ redis ]; 29 30 nativeCheckInputs = [ 31 unittestCheckHook 32 redisTestHook 33 ]; 34 35 pythonImportsCheck = [ "walrus" ]; 36 37 __darwinAllowLocalNetworking = true; 38 39 meta = with lib; { 40 description = "Lightweight Python utilities for working with Redis"; 41 homepage = "https://github.com/coleifer/walrus"; 42 changelog = "https://github.com/coleifer/walrus/blob/${version}/CHANGELOG.md"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ mbalatsko ]; 45 }; 46}