mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
289825ae8a
* Fix license * Update version * Update homepage & URL links * Disable on python2.7 (no longer supported).
43 lines
898 B
Nix
43 lines
898 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, poetry
|
|
, pytestCheckHook
|
|
, pytestcov
|
|
, pytestrunner
|
|
, pycodestyle
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tinydb";
|
|
version = "4.1.1";
|
|
disabled = pythonOlder "3.5";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "msiemens";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "09cwdmpj91c6q7jympip1lrcd3idbm9cqblgvmrh0v1vy1iv2ki7";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry ];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
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;
|
|
maintainers = with maintainers; [ marcus7070 ];
|
|
};
|
|
}
|