Skip to content

Commit

Permalink
Merge pull request #210154 from bcdarwin/python3-siuba
Browse files Browse the repository at this point in the history
python310Packages.siuba: init at 0.4.2
  • Loading branch information
SuperSandro2000 authored Jan 26, 2023
2 parents daeec2f + e83d207 commit bd5a809
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pkgs/development/python-modules/siuba/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit bd5a809

Please sign in to comment.