nixpkgs/pkgs/development/python-modules/tinydb/default.nix

43 lines
898 B
Nix
Raw Normal View History

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