1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, py 5, pytest-benchmark 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "sqlitedict"; 11 version = "2.1.0"; 12 13 src = fetchFromGitHub { 14 owner = "RaRe-Technologies"; 15 repo = "sqlitedict"; 16 rev = "refs/tags/v${version}"; 17 hash = "sha256-GfvvkQ6a75UBPn70IFOvjvL1MedSc4siiIjA3IsQnic="; 18 }; 19 20 preCheck = '' 21 mkdir tests/db 22 ''; 23 24 nativeCheckInputs = [ 25 py 26 pytest-benchmark 27 pytestCheckHook 28 ]; 29 30 pytestFlagsArray = [ 31 "--benchmark-disable" 32 ]; 33 34 meta = with lib; { 35 description = "Persistent, thread-safe dict"; 36 homepage = "https://github.com/RaRe-Technologies/sqlitedict"; 37 license = licenses.asl20; 38 maintainers = [ maintainers.arnoldfarkas ]; 39 }; 40}