pythonPackages.datasette: 0.39 -> 0.46
enable more tests that now seem to work
This commit is contained in:
parent
4e94600604
commit
f1b9dcde97
@ -2,19 +2,22 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, aiofiles
|
, aiofiles
|
||||||
|
, asgi-csrf
|
||||||
, click
|
, click
|
||||||
, click-default-group
|
, click-default-group
|
||||||
, janus
|
, janus
|
||||||
, jinja2
|
, jinja2
|
||||||
, hupper
|
, hupper
|
||||||
|
, mergedeep
|
||||||
, pint
|
, pint
|
||||||
, pluggy
|
, pluggy
|
||||||
|
, python-baseconv
|
||||||
|
, pyyaml
|
||||||
, uvicorn
|
, uvicorn
|
||||||
# Check Inputs
|
# Check Inputs
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, black
|
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, beautifulsoup4
|
, beautifulsoup4
|
||||||
, asgiref
|
, asgiref
|
||||||
@ -23,26 +26,30 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "datasette";
|
pname = "datasette";
|
||||||
version = "0.39";
|
version = "0.46";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "simonw";
|
owner = "simonw";
|
||||||
repo = "datasette";
|
repo = "datasette";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "07d46512bc9sdan9lv39sf1bwlf7vf1bfhcsm825vk7sv7g9kczd";
|
sha256 = "0g4dfq5ykifa9628cb4i7gvx98p8hvb99gzfxk3bkvq1v9p4kcqq";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pytestrunner ];
|
nativeBuildInputs = [ pytestrunner ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiofiles
|
aiofiles
|
||||||
|
asgi-csrf
|
||||||
click
|
click
|
||||||
click-default-group
|
click-default-group
|
||||||
janus
|
janus
|
||||||
jinja2
|
jinja2
|
||||||
hupper
|
hupper
|
||||||
|
mergedeep
|
||||||
pint
|
pint
|
||||||
pluggy
|
pluggy
|
||||||
|
python-baseconv
|
||||||
|
pyyaml
|
||||||
uvicorn
|
uvicorn
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
@ -52,7 +59,6 @@ buildPythonPackage rec {
|
|||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
aiohttp
|
aiohttp
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
black
|
|
||||||
asgiref
|
asgiref
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -60,22 +66,17 @@ buildPythonPackage rec {
|
|||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "click~=7.1.1" "click" \
|
--replace "click~=7.1.1" "click" \
|
||||||
--replace "click-default-group~=1.2.2" "click-default-group" \
|
--replace "click-default-group~=1.2.2" "click-default-group" \
|
||||||
--replace "Jinja2~=2.10.3" "Jinja2" \
|
|
||||||
--replace "hupper~=1.9" "hupper" \
|
--replace "hupper~=1.9" "hupper" \
|
||||||
--replace "pint~=0.9" "pint" \
|
--replace "pint~=0.9" "pint" \
|
||||||
--replace "pluggy~=0.13.0" "pint" \
|
--replace "pluggy~=0.13.0" "pluggy" \
|
||||||
--replace "uvicorn~=0.11" "uvicorn" \
|
--replace "uvicorn~=0.11" "uvicorn" \
|
||||||
--replace "aiofiles~=0.4.0" "aiofiles" \
|
|
||||||
--replace "janus~=0.4.0" "janus" \
|
|
||||||
--replace "PyYAML~=5.3" "PyYAML"
|
--replace "PyYAML~=5.3" "PyYAML"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# many tests require network access
|
# test_html is very slow
|
||||||
# test_black fails on darwin
|
# test_black fails on darwin
|
||||||
dontUseSetuptoolsCheck = true;
|
dontUseSetuptoolsCheck = true;
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--ignore=tests/test_api.py"
|
|
||||||
"--ignore=tests/test_csv.py"
|
|
||||||
"--ignore=tests/test_html.py"
|
"--ignore=tests/test_html.py"
|
||||||
"--ignore=tests/test_docs.py"
|
"--ignore=tests/test_docs.py"
|
||||||
"--ignore=tests/test_black.py"
|
"--ignore=tests/test_black.py"
|
||||||
@ -84,6 +85,7 @@ buildPythonPackage rec {
|
|||||||
"facet"
|
"facet"
|
||||||
"_invalid_database" # checks error message when connecting to invalid database
|
"_invalid_database" # checks error message when connecting to invalid database
|
||||||
];
|
];
|
||||||
|
pythonImportsCheck = [ "datasette" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An instant JSON API for your SQLite databases";
|
description = "An instant JSON API for your SQLite databases";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user