2019-08-07 08:13:33 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-09-16 16:16:01 +01:00
|
|
|
, pythonOlder
|
2019-08-07 08:13:33 +01:00
|
|
|
, fetchFromGitHub
|
2020-09-16 16:16:01 +01:00
|
|
|
, poetry
|
|
|
|
, pytestCheckHook
|
2019-08-07 08:13:33 +01:00
|
|
|
, pytestcov
|
|
|
|
, pytestrunner
|
|
|
|
, pycodestyle
|
|
|
|
, pyyaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tinydb";
|
2020-09-16 16:16:01 +01:00
|
|
|
version = "4.1.1";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
format = "pyproject";
|
2019-08-07 08:13:33 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "msiemens";
|
|
|
|
repo = pname;
|
2020-09-16 16:16:01 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "09cwdmpj91c6q7jympip1lrcd3idbm9cqblgvmrh0v1vy1iv2ki7";
|
2019-08-07 08:13:33 +01:00
|
|
|
};
|
|
|
|
|
2020-09-16 16:16:01 +01:00
|
|
|
nativeBuildInputs = [ poetry ];
|
2019-08-07 08:13:33 +01:00
|
|
|
|
|
|
|
checkInputs = [
|
2020-09-16 16:16:01 +01:00
|
|
|
pytestCheckHook
|
2019-08-07 08:13:33 +01:00
|
|
|
pytestcov
|
|
|
|
pycodestyle
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A lightweight document oriented database written in pure Python with no external dependencies";
|
2020-09-16 16:16:01 +01:00
|
|
|
homepage = "https://tinydb.readthedocs.org/";
|
|
|
|
changelog = "https://tinydb.readthedocs.io/en/latest/changelog.html";
|
|
|
|
license = licenses.mit;
|
2019-08-07 08:13:33 +01:00
|
|
|
maintainers = with maintainers; [ marcus7070 ];
|
|
|
|
};
|
|
|
|
}
|