Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 63 lines
Nix
at llvm-cleanup
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, # required dependencies requests, setuptools, # optional dependencies pandas, tornado, sqlalchemy, # test dependencies pycurl, pytestCheckHook,}:
buildPythonPackage rec { pname = "pydruid"; version = "0.6.5"; format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub { repo = pname; owner = "druid-io"; rev = "refs/tags/${version}"; hash = "sha256-9+xomjSwWDVHkret/mqAZKWOPFRMvVB3CWtFPzrT81k="; };
# patch out the CLI because it doesn't work with newer versions of pygments postPatch = '' substituteInPlace setup.py --replace '"console_scripts": ["pydruid = pydruid.console:main"],' "" '';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [ pytestCheckHook pycurl ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ "pydruid" ];
passthru = { optional-dependencies = { pandas = [ pandas ]; async = [ tornado ]; sqlalchemy = [ sqlalchemy ]; # druid has a `cli` extra, but it doesn't work with nixpkgs pygments }; };
meta = with lib; { description = "Simple API to create, execute, and analyze Druid queries"; homepage = "https://github.com/druid-io/pydruid"; license = licenses.asl20; maintainers = with maintainers; [ cpcloud ]; };}