mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
python3Packages.datasette: relax click & jinja2 constraints
Move substituion into postPatch, the canonical place for this kind of operation.
This commit is contained in:
parent
b08880a4f8
commit
60d698f8bf
@ -32,7 +32,7 @@ buildPythonPackage rec {
|
||||
pname = "datasette";
|
||||
version = "0.61.1";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "simonw";
|
||||
@ -41,6 +41,17 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-HVzMyF4ujYK12UQ25il/XROPo+iBldsMxOTx+duoc5o=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace '"pytest-runner"' "" \
|
||||
--replace "click>=7.1.1,<8.1.0" "click>=7.1.1,<8.2.0" \
|
||||
--replace "click-default-group~=1.2.2" "click-default-group" \
|
||||
--replace "hupper~=1.9" "hupper" \
|
||||
--replace "Jinja2>=2.10.3,<3.1.0" "Jinja2" \
|
||||
--replace "pint~=0.9" "pint" \
|
||||
--replace "uvicorn~=0.11" "uvicorn"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiofiles
|
||||
asgi-csrf
|
||||
@ -70,17 +81,6 @@ buildPythonPackage rec {
|
||||
trustme
|
||||
];
|
||||
|
||||
postConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace '"pytest-runner"' ""
|
||||
substituteInPlace setup.py \
|
||||
--replace "click-default-group~=1.2.2" "click-default-group" \
|
||||
--replace "hupper~=1.9" "hupper" \
|
||||
--replace "pint~=0.9" "pint" \
|
||||
--replace "pluggy~=0.13.0" "pluggy" \
|
||||
--replace "uvicorn~=0.11" "uvicorn" \
|
||||
'';
|
||||
|
||||
# takes 30-180 mins to run entire test suite, not worth the CPU resources, slows down reviews
|
||||
# with pytest-xdist, it still takes around 10 mins with 32 cores
|
||||
# just run the csv tests, as this should give some indictation of correctness
|
||||
|
Loading…
Reference in New Issue
Block a user