Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / sqlitedict / default.nix
blobeb11a9805c2fc26bd2e0f9b30ec9b4049d85eb8b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , py
5 , pytest-benchmark
6 , pytestCheckHook
7 , pythonOlder
8 , setuptools
9 }:
11 buildPythonPackage rec {
12   pname = "sqlitedict";
13   version = "2.1.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "RaRe-Technologies";
20     repo = "sqlitedict";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-GfvvkQ6a75UBPn70IFOvjvL1MedSc4siiIjA3IsQnic=";
23   };
25   nativeBuildInputs = [
26     setuptools
27   ];
29   nativeCheckInputs = [
30     py
31     pytest-benchmark
32     pytestCheckHook
33   ];
35   preCheck = ''
36     mkdir tests/db
37   '';
39   pythonImportsCheck = [
40     "sqlitedict"
41   ];
43   pytestFlagsArray = [
44     "--benchmark-disable"
45   ];
47   meta = with lib; {
48     description = "Persistent, thread-safe dict";
49     homepage = "https://github.com/RaRe-Technologies/sqlitedict";
50     changelog = "https://github.com/piskvorky/sqlitedict/blob/v${version}/CHANGELOG.md";
51     license = licenses.asl20;
52     maintainers = with maintainers; [ arnoldfarkas ];
53   };