pythonPackages.datasette: 0.28 -> 0.29.3

Patch donated by @wd51, and removes sanic dependency.
This commit is contained in:
Simon Chatterjee 2019-09-11 20:39:28 +01:00
parent 8b263a4530
commit 1cb9d4d85b

View File

@ -3,7 +3,6 @@
, fetchFromGitHub
, click
, click-default-group
, sanic
, jinja2
, hupper
, pint
@ -14,17 +13,20 @@
, black
, aiohttp
, beautifulsoup4
, uvicorn
, asgiref
, aiofiles
}:
buildPythonPackage rec {
pname = "datasette";
version = "0.28";
version = "0.29.3";
src = fetchFromGitHub {
owner = "simonw";
repo = "datasette";
rev = version;
sha256 = "1m2s03gyq0ghjc3s0b5snpinisddywpgii2f0zqa3v4ljmzanx7h";
sha256 = "0cib7pd4z240ncck0pskzvizblhwkr42fsjpd719wdxy4scs7yqa";
};
buildInputs = [ pytestrunner ];
@ -32,11 +34,12 @@ buildPythonPackage rec {
propagatedBuildInputs = [
click
click-default-group
sanic
jinja2
hupper
pint
pluggy
uvicorn
aiofiles
];
checkInputs = [
@ -45,6 +48,7 @@ buildPythonPackage rec {
aiohttp
beautifulsoup4
black
asgiref
];
postConfigure = ''
@ -52,8 +56,9 @@ buildPythonPackage rec {
--replace "click-default-group==1.2" "click-default-group" \
--replace "Sanic==0.7.0" "Sanic" \
--replace "hupper==1.0" "hupper" \
--replace "pint==0.8.1" "pint" \
--replace "Jinja2==2.10.1" "Jinja2"
--replace "pint~=0.8.1" "pint" \
--replace "Jinja2==2.10.1" "Jinja2" \
--replace "uvicorn~=0.8.4" "uvicorn"
'';
# many tests require network access