datasette: 0.35 -> 0.39
This commit is contained in:
parent
4b822bbd23
commit
fb252907f5
|
@ -1,49 +1,52 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, aiofiles
|
||||||
, click
|
, click
|
||||||
, click-default-group
|
, click-default-group
|
||||||
|
, janus
|
||||||
, jinja2
|
, jinja2
|
||||||
, hupper
|
, hupper
|
||||||
, pint
|
, pint
|
||||||
, pluggy
|
, pluggy
|
||||||
, pytest
|
, uvicorn
|
||||||
|
# Check Inputs
|
||||||
|
, pytestCheckHook
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, black
|
, black
|
||||||
, aiohttp
|
, aiohttp
|
||||||
, beautifulsoup4
|
, beautifulsoup4
|
||||||
, uvicorn
|
|
||||||
, asgiref
|
, asgiref
|
||||||
, aiofiles
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "datasette";
|
pname = "datasette";
|
||||||
version = "0.35";
|
version = "0.39";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "simonw";
|
owner = "simonw";
|
||||||
repo = "datasette";
|
repo = "datasette";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0v6af7agg27lapz1nbab07595v4hl2x5wm2f03drj81f7pm8y7hc";
|
sha256 = "07d46512bc9sdan9lv39sf1bwlf7vf1bfhcsm825vk7sv7g9kczd";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pytestrunner ];
|
nativeBuildInputs = [ pytestrunner ];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
aiofiles
|
||||||
click
|
click
|
||||||
click-default-group
|
click-default-group
|
||||||
|
janus
|
||||||
jinja2
|
jinja2
|
||||||
hupper
|
hupper
|
||||||
pint
|
pint
|
||||||
pluggy
|
pluggy
|
||||||
uvicorn
|
uvicorn
|
||||||
aiofiles
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
pytestCheckHook
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
aiohttp
|
aiohttp
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
|
@ -53,24 +56,32 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "click-default-group==1.2" "click-default-group" \
|
--replace "click~=7.1.1" "click" \
|
||||||
--replace "Sanic==0.7.0" "Sanic" \
|
--replace "click-default-group~=1.2.2" "click-default-group" \
|
||||||
--replace "hupper==1.0" "hupper" \
|
--replace "Jinja2~=2.10.3" "Jinja2" \
|
||||||
--replace "pint~=0.8.1" "pint" \
|
--replace "hupper~=1.9" "hupper" \
|
||||||
--replace "pluggy~=0.12.0" "pint" \
|
--replace "pint~=0.9" "pint" \
|
||||||
--replace "Jinja2==2.10.1" "Jinja2" \
|
--replace "pluggy~=0.13.0" "pint" \
|
||||||
--replace "uvicorn~=0.8.4" "uvicorn"
|
--replace "uvicorn~=0.11" "uvicorn" \
|
||||||
|
--replace "aiofiles~=0.4.0" "aiofiles" \
|
||||||
|
--replace "janus~=0.4.0" "janus" \
|
||||||
|
--replace "PyYAML~=5.3" "PyYAML"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# many tests require network access
|
# many tests require network access
|
||||||
# test_black fails on darwin
|
# test_black fails on darwin
|
||||||
checkPhase = ''
|
dontUseSetuptoolsCheck = true;
|
||||||
pytest --ignore tests/test_api.py \
|
pytestFlagsArray = [
|
||||||
--ignore tests/test_csv.py \
|
"--ignore=tests/test_api.py"
|
||||||
--ignore tests/test_html.py \
|
"--ignore=tests/test_csv.py"
|
||||||
--ignore tests/test_black.py \
|
"--ignore=tests/test_html.py"
|
||||||
-k 'not facet'
|
"--ignore=tests/test_docs.py"
|
||||||
'';
|
"--ignore=tests/test_black.py"
|
||||||
|
];
|
||||||
|
disabledTests = [
|
||||||
|
"facet"
|
||||||
|
"_invalid_database" # checks error message when connecting to invalid database
|
||||||
|
];
|
||||||
|
|
||||||
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…
Reference in New Issue