biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / sqlitedict / default.nix
blob8dbe9d93b4521c67a904148411cff26ff552ddc4
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   py,
6   pytest-benchmark,
7   pytestCheckHook,
8   pythonOlder,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "sqlitedict";
14   version = "2.1.0";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "RaRe-Technologies";
21     repo = "sqlitedict";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-GfvvkQ6a75UBPn70IFOvjvL1MedSc4siiIjA3IsQnic=";
24   };
26   nativeBuildInputs = [ setuptools ];
28   nativeCheckInputs = [
29     py
30     pytest-benchmark
31     pytestCheckHook
32   ];
34   preCheck = ''
35     mkdir tests/db
36   '';
38   pythonImportsCheck = [ "sqlitedict" ];
40   pytestFlagsArray = [ "--benchmark-disable" ];
42   meta = with lib; {
43     description = "Persistent, thread-safe dict";
44     homepage = "https://github.com/RaRe-Technologies/sqlitedict";
45     changelog = "https://github.com/piskvorky/sqlitedict/blob/v${version}/CHANGELOG.md";
46     license = licenses.asl20;
47     maintainers = with maintainers; [ arnoldfarkas ];
48   };