1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "sqlitedict"; 9 version = "2.0.0"; 10 11 src = fetchFromGitHub { 12 owner = "RaRe-Technologies"; 13 repo = "sqlitedict"; 14 rev = "refs/tags/${version}"; 15 sha256 = "sha256-8dmGn5h3NigCdDtnDYjpjntRpyjk7ivRp1B8x8nUgpE="; 16 }; 17 18 preCheck = '' 19 mkdir tests/db 20 ''; 21 22 checkInputs = [ 23 pytestCheckHook 24 ]; 25 26 meta = with lib; { 27 description = "Persistent, thread-safe dict"; 28 homepage = "https://github.com/RaRe-Technologies/sqlitedict"; 29 license = licenses.asl20; 30 maintainers = [ maintainers.arnoldfarkas ]; 31 }; 32}