Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.0 kB · 107 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108{ lib, buildPythonPackage, fetchFromGitHub, aiofiles, asgi-csrf, click, click-default-group, itsdangerous, janus, jinja2, hupper, mergedeep, pint, pluggy, python-baseconv, pyyaml, uvicorn, httpx, pytestCheckHook, pytest-asyncio, pytest-timeout, aiohttp, beautifulsoup4, asgiref, setuptools, trustme, pythonOlder}:
buildPythonPackage rec { pname = "datasette"; version = "0.64.3"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "simonw"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-hUMaveScSGbiELvN2oo8Nf/jFvYXeLpxTONl1R4UOZU="; };
postPatch = '' substituteInPlace setup.py \ --replace '"pytest-runner"' "" \ --replace "click-default-group-wheel>=1.2.2" "click-default-group" '';
propagatedBuildInputs = [ aiofiles asgi-csrf asgiref click click-default-group httpx hupper itsdangerous janus jinja2 mergedeep pint pluggy python-baseconv pyyaml setuptools uvicorn ];
nativeCheckInputs = [ aiohttp beautifulsoup4 pytest-asyncio pytest-timeout pytestCheckHook trustme ];
# 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 pytestFlagsArray = [ "tests/test_csv.py" ];
disabledTests = [ "facet" "_invalid_database" # checks error message when connecting to invalid database ];
pythonImportsCheck = [ "datasette" "datasette.cli" "datasette.app" "datasette.database" "datasette.renderer" "datasette.tracer" "datasette.plugins" ];
meta = with lib; { description = "Multi-tool for exploring and publishing data"; homepage = "https://datasette.io/"; license = licenses.asl20; maintainers = with maintainers; [ costrouc ]; };}