python3Packages.tinydb: 4.4.0 -> 4.5.0

This commit is contained in:
Fabian Affolter 2021-07-08 22:56:31 +02:00
parent 44188d6472
commit 6a06ead8a3

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" ""