1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-30 21:15:21 +03:00
nixpkgs/pkgs/development/python-modules/tinydb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
997 B
Nix
Raw Normal View History

2019-08-07 16:43:33 +09:30
{ lib
, buildPythonPackage
, pythonOlder
2019-08-07 16:43:33 +09:30
, fetchFromGitHub
2021-04-15 23:04:25 +02:00
, poetry-core
, pytestCheckHook
2019-08-07 16:43:33 +09:30
, pycodestyle
, pyyaml
}:
buildPythonPackage rec {
pname = "tinydb";
version = "4.7.0";
disabled = pythonOlder "3.5";
format = "pyproject";
2019-08-07 16:43:33 +09:30
src = fetchFromGitHub {
owner = "msiemens";
repo = pname;
rev = "v${version}";
sha256 = "sha256-cAIo/qdIOIpPt9vPan5oJfKtH2Gmrm03aLuAHpfUfLY=";
2019-08-07 16:43:33 +09:30
};
2021-04-15 23:04:25 +02:00
nativeBuildInputs = [
poetry-core
];
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov-append --cov-report term --cov tinydb" ""
'';
2019-08-07 16:43:33 +09:30
checkInputs = [
pytestCheckHook
2019-08-07 16:43:33 +09:30
pycodestyle
pyyaml
];
2021-04-15 23:04:25 +02:00
pythonImportsCheck = [ "tinydb" ];
2019-08-07 16:43:33 +09:30
meta = with lib; {
2021-04-15 23:04:25 +02:00
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;
2019-08-07 16:43:33 +09:30
maintainers = with maintainers; [ marcus7070 ];
};
}