depot/third_party/nixpkgs/pkgs/development/python-modules/siuba/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

65 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 ];
};
}