Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, hypothesis 7, numpy 8, pandas 9, psycopg2 10, pymysql 11, python-dateutil 12, pytz 13, pyyaml 14, six 15, sqlalchemy 16}: 17 18buildPythonPackage rec { 19 pname = "siuba"; 20 version = "0.4.2"; 21 disabled = pythonOlder "3.7"; 22 23 format = "setuptools"; 24 25 src = fetchFromGitHub { 26 owner = "machow"; 27 repo = "siuba"; 28 rev = "refs/tags/v${version}"; 29 hash = "sha256-Q2nkK51bmIO2OcBuWu+u7yB8UmaqiZJXpuxXcytTlUY="; 30 }; 31 32 propagatedBuildInputs = [ 33 numpy 34 pandas 35 psycopg2 36 pymysql 37 python-dateutil 38 pytz 39 pyyaml 40 six 41 sqlalchemy 42 ]; 43 44 nativeCheckInputs = [ 45 hypothesis 46 pytestCheckHook 47 ]; 48 doCheck = false; 49 # requires running mysql and postgres instances; see docker-compose.yml 50 51 pythonImportsCheck = [ 52 "siuba" 53 "siuba.data" 54 ]; 55 56 meta = with lib; { 57 description = "Use dplyr-like syntax with pandas and SQL"; 58 homepage = "https://siuba.org"; 59 license = licenses.mit; 60 maintainers = with maintainers; [ bcdarwin ]; 61 }; 62}