nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 945 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 py, 6 pytest-benchmark, 7 pytestCheckHook, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "sqlitedict"; 13 version = "2.1.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "RaRe-Technologies"; 18 repo = "sqlitedict"; 19 tag = "v${version}"; 20 hash = "sha256-GfvvkQ6a75UBPn70IFOvjvL1MedSc4siiIjA3IsQnic="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 nativeCheckInputs = [ 26 py 27 pytest-benchmark 28 pytestCheckHook 29 ]; 30 31 preCheck = '' 32 mkdir tests/db 33 ''; 34 35 pythonImportsCheck = [ "sqlitedict" ]; 36 37 pytestFlags = [ "--benchmark-disable" ]; 38 39 meta = { 40 description = "Persistent, thread-safe dict"; 41 homepage = "https://github.com/RaRe-Technologies/sqlitedict"; 42 changelog = "https://github.com/piskvorky/sqlitedict/blob/v${version}/CHANGELOG.md"; 43 license = lib.licenses.asl20; 44 maintainers = with lib.maintainers; [ arnoldfarkas ]; 45 }; 46}