a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
48 lines
1,013 B
Nix
48 lines
1,013 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pycodestyle
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tinydb";
|
|
version = "4.7.1";
|
|
disabled = pythonOlder "3.5";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "msiemens";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-nKsTMakCOBVHDDp8AX/xDkvHpCMBoIb0pa24F4VX/14=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pytest.ini \
|
|
--replace "--cov-append --cov-report term --cov tinydb" ""
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pycodestyle
|
|
pyyaml
|
|
];
|
|
|
|
pythonImportsCheck = [ "tinydb" ];
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight document oriented database written in Python";
|
|
homepage = "https://tinydb.readthedocs.org/";
|
|
changelog = "https://tinydb.readthedocs.io/en/latest/changelog.html";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ marcus7070 ];
|
|
};
|
|
}
|