Merge pull request #129688 from fabaff/bump-tinydb

python3Packages.tinydb: 4.4.0 -> 4.5.0
This commit is contained in:
Sandro 2021-07-09 12:48:35 +02:00 committed by GitHub
commit d90db7b8de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,6 @@
, pythonOlder
, fetchFromGitHub
, poetry-core
, fetchpatch
, pytestCheckHook
, pycodestyle
, pyyaml
@ -11,7 +10,7 @@
buildPythonPackage rec {
pname = "tinydb";
version = "4.4.0";
version = "4.5.0";
disabled = pythonOlder "3.5";
format = "pyproject";
@ -19,22 +18,13 @@ buildPythonPackage rec {
owner = "msiemens";
repo = pname;
rev = "v${version}";
sha256 = "sha256-3FbsnLU7G4VVhI5NYRqCEQgo51zDeAkEhH69H52zr/w=";
sha256 = "sha256-rJVJfsPhGTQpE6p0kzN6GDR0r9M71ADa67Oi5jLgeWY=";
};
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" ""