at 24.11-pre 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 poetry-core, 7 pytestCheckHook, 8 pycodestyle, 9 pyyaml, 10}: 11 12buildPythonPackage rec { 13 pname = "tinydb"; 14 version = "4.8.0"; 15 disabled = pythonOlder "3.5"; 16 format = "pyproject"; 17 18 src = fetchFromGitHub { 19 owner = "msiemens"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-sdWcpkjC8LtOI1k0Wyk4vLXBcwYe1vuQON9J7P8JPxA="; 23 }; 24 25 nativeBuildInputs = [ poetry-core ]; 26 27 postPatch = '' 28 substituteInPlace pytest.ini \ 29 --replace "--cov-append --cov-report term --cov tinydb" "" 30 ''; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 pycodestyle 35 pyyaml 36 ]; 37 38 pythonImportsCheck = [ "tinydb" ]; 39 40 meta = with lib; { 41 description = "Lightweight document oriented database written in Python"; 42 homepage = "https://tinydb.readthedocs.org/"; 43 changelog = "https://tinydb.readthedocs.io/en/latest/changelog.html"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ marcus7070 ]; 46 }; 47}