Merge pull request #210154 from bcdarwin/python3-siuba

python310Packages.siuba: init at 0.4.2
This commit is contained in:
Sandro 2023-01-26 20:22:44 +01:00 committed by GitHub
commit bd5a809a35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 64 additions and 0 deletions

View File

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

View File

@ -10507,6 +10507,8 @@ self: super: with self; {
sip_4 = callPackage ../development/python-modules/sip/4.x.nix { };
siuba = callPackage ../development/python-modules/siuba { };
six = callPackage ../development/python-modules/six { };
sjcl = callPackage ../development/python-modules/sjcl { };