mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
49 lines
998 B
Nix
49 lines
998 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pycodestyle
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tinydb";
|
|
version = "4.5.2";
|
|
disabled = pythonOlder "3.5";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "msiemens";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0gyc9rk1adw4gynwnv4kfas0hxv1cql0sm5b3fsms39088ha894l";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|