nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 pytest-cov-stub,
8 pyyaml,
9}:
10
11buildPythonPackage rec {
12 pname = "tinydb";
13 version = "4.8.2";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "msiemens";
18 repo = "tinydb";
19 tag = "v${version}";
20 hash = "sha256-N/45XB7ZuZiq25v6DQx4K9NRVnBbUHPeiKKbxQ9YB3E=";
21 };
22
23 build-system = [
24 poetry-core
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 pytest-cov-stub
30 pyyaml
31 ];
32
33 pythonImportsCheck = [ "tinydb" ];
34
35 meta = {
36 description = "Lightweight document oriented database written in Python";
37 homepage = "https://tinydb.readthedocs.org/";
38 changelog = "https://tinydb.readthedocs.io/en/latest/changelog.html";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ marcus7070 ];
41 };
42}