depot/third_party/nixpkgs/pkgs/development/python-modules/sqlitedict/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

40 lines
746 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, py
, pytest-benchmark
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "sqlitedict";
version = "2.1.0";
src = fetchFromGitHub {
owner = "RaRe-Technologies";
repo = "sqlitedict";
rev = "refs/tags/v${version}";
sha256 = "sha256-GfvvkQ6a75UBPn70IFOvjvL1MedSc4siiIjA3IsQnic=";
};
preCheck = ''
mkdir tests/db
'';
checkInputs = [
py
pytest-benchmark
pytestCheckHook
];
pytestFlagsArray = [
"--benchmark-disable"
];
meta = with lib; {
description = "Persistent, thread-safe dict";
homepage = "https://github.com/RaRe-Technologies/sqlitedict";
license = licenses.asl20;
maintainers = [ maintainers.arnoldfarkas ];
};
}