e811e7b8dc
GitOrigin-RevId: 689b76bcf36055afdeb2e9852f5ecdd2bf483f87
48 lines
998 B
Nix
48 lines
998 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pycodestyle
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tinydb";
|
|
version = "4.6.1";
|
|
disabled = pythonOlder "3.5";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "msiemens";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "17m8g6xzwa0k8qb4k4p9hjcyv58gmxz1lkvr2ckc5csa0ydvv91a";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pytest.ini \
|
|
--replace "--cov-append --cov-report term --cov tinydb" ""
|
|
'';
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|