depot/third_party/nixpkgs/pkgs/development/python-modules/siuba/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

64 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, hypothesis
, numpy
, pandas
, psycopg2
, pymysql
, python-dateutil
, pytz
, pyyaml
, six
, sqlalchemy
}:
buildPythonPackage rec {
pname = "siuba";
version = "0.4.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "machow";
repo = "siuba";
rev = "refs/tags/v${version}";
hash = "sha256-rd/yQH3sbZqQAQ1AN44vChe30GMJuIlZj3Ccfv1m3lU=";
};
propagatedBuildInputs = [
numpy
pandas
psycopg2
pymysql
python-dateutil
pytz
pyyaml
six
sqlalchemy
];
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
# requires running mysql and postgres instances; see docker-compose.yml
doCheck = false;
pythonImportsCheck = [
"siuba"
"siuba.data"
];
meta = with lib; {
description = "Use dplyr-like syntax with pandas and SQL";
homepage = "https://siuba.org";
changelog = "https://github.com/machow/siuba/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}