python3Packages.tinydb: 4.1.1 -> 4.4.0
This commit is contained in:
parent
2583313c37
commit
ea9d7e302e
1 changed files with 24 additions and 8 deletions
|
@ -2,17 +2,16 @@
|
|||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, poetry
|
||||
, poetry-core
|
||||
, fetchpatch
|
||||
, pytestCheckHook
|
||||
, pytestcov
|
||||
, pytestrunner
|
||||
, pycodestyle
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tinydb";
|
||||
version = "4.1.1";
|
||||
version = "4.4.0";
|
||||
disabled = pythonOlder "3.5";
|
||||
format = "pyproject";
|
||||
|
||||
|
@ -20,20 +19,37 @@ buildPythonPackage rec {
|
|||
owner = "msiemens";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "09cwdmpj91c6q7jympip1lrcd3idbm9cqblgvmrh0v1vy1iv2ki7";
|
||||
sha256 = "sha256-3FbsnLU7G4VVhI5NYRqCEQgo51zDeAkEhH69H52zr/w=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry ];
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Switch to poetry-core, https://github.com/msiemens/tinydb/pull/391
|
||||
(fetchpatch {
|
||||
name = "switch-to-peotry-core.patch";
|
||||
url = "https://github.com/msiemens/tinydb/commit/5b547c18e7ce9f5925d5943dfa47d408435a0da5.patch";
|
||||
sha256 = "19ma9ib020b82sn1mcr7sfysqbj8h6nbb365bih1x1wn3ym8xlbc";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini \
|
||||
--replace "--cov-append --cov-report term --cov tinydb" ""
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pytestcov
|
||||
pycodestyle
|
||||
pyyaml
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "tinydb" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A lightweight document oriented database written in pure Python with no external dependencies";
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue