Merge pull request #119570 from fabaff/bump-tinydb
This commit is contained in:
commit
cd8c90fe20
@ -1,15 +1,31 @@
|
|||||||
{ lib, buildPythonApplication, fetchPypi, appdirs, attrs
|
{ lib
|
||||||
, beautifulsoup4, click-plugins, elasticsearch, flask-compress
|
, buildPythonApplication
|
||||||
, flask_login, flask_wtf, html2text, python-dotenv, python-frontmatter
|
, fetchPypi
|
||||||
, requests, tinydb, validators, werkzeug, wtforms }:
|
, appdirs
|
||||||
|
, attrs
|
||||||
|
, beautifulsoup4
|
||||||
|
, click-plugins
|
||||||
|
, elasticsearch
|
||||||
|
, flask-compress
|
||||||
|
, flask_login
|
||||||
|
, flask_wtf
|
||||||
|
, html2text
|
||||||
|
, python-dotenv
|
||||||
|
, python-frontmatter
|
||||||
|
, requests
|
||||||
|
, tinydb
|
||||||
|
, validators
|
||||||
|
, werkzeug
|
||||||
|
, wtforms
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "archivy";
|
pname = "archivy";
|
||||||
version = "1.1.1";
|
version = "1.1.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-yUXsTPb5oJYZA9MlHz7eLowRjD/ltq5VLTHeOMqcL/M=";
|
sha256 = "sha256-oSmwQcKvp9RABmc7aq6fdLOZapMauIi6+7azVTXVb30=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Relax some dependencies
|
# Relax some dependencies
|
||||||
@ -22,6 +38,7 @@ buildPythonApplication rec {
|
|||||||
--replace 'python_frontmatter == 0.5.0' 'python_frontmatter' \
|
--replace 'python_frontmatter == 0.5.0' 'python_frontmatter' \
|
||||||
--replace 'requests ==' 'requests >=' \
|
--replace 'requests ==' 'requests >=' \
|
||||||
--replace 'validators ==' 'validators >=' \
|
--replace 'validators ==' 'validators >=' \
|
||||||
|
--replace 'tinydb ==' 'tinydb >='
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
@ -2,17 +2,16 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, poetry
|
, poetry-core
|
||||||
|
, fetchpatch
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytestcov
|
|
||||||
, pytestrunner
|
|
||||||
, pycodestyle
|
, pycodestyle
|
||||||
, pyyaml
|
, pyyaml
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tinydb";
|
pname = "tinydb";
|
||||||
version = "4.1.1";
|
version = "4.4.0";
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.5";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
@ -20,20 +19,37 @@ buildPythonPackage rec {
|
|||||||
owner = "msiemens";
|
owner = "msiemens";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
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 = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytestcov
|
|
||||||
pycodestyle
|
pycodestyle
|
||||||
pyyaml
|
pyyaml
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "tinydb" ];
|
||||||
|
|
||||||
meta = with lib; {
|
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/";
|
homepage = "https://tinydb.readthedocs.org/";
|
||||||
changelog = "https://tinydb.readthedocs.io/en/latest/changelog.html";
|
changelog = "https://tinydb.readthedocs.io/en/latest/changelog.html";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user