Initial Commit

This commit is contained in:
Jeremy Wall 2021-10-28 10:51:57 -04:00
commit ef382b5f6f
2 changed files with 84 additions and 0 deletions

62
dbt-core/default.nix Normal file
View File

@ -0,0 +1,62 @@
with import <nixpkgs> {};
with python38Packages;
buildPythonPackage rec {
pname = "dbt";
version = "0.12.0";
propagatedBuildInputs = [
agate
attrs
Babel
certifi
cffi
charset-normalizer
click
colorama
#dbt-extractor
#dbt-postgres
hologram
idna
importlib-metadata
isodate
jinja2
jsonschema
leather
Logbook
markupsafe
#mashumaro
#minimal-snowplow-tracker
msgpack
networkx
packaging
parsedatetime
#psycopg2-binary
pycparser
pyparsing
pyrsistent
python-dateutil
python-slugify
pytimeparse
pytz
pyyaml
requests
six
sqlparse
text-unidecode
typing-extensions
urllib3
werkzeug
zipp
snowflake-connector-python
];
doCheck = false;
src = fetchPypi {
inherit pname;
inherit version;
#sha256 = "0000000000000000000000000000000000000000000000000000";
sha256 = "0ymd6pp0vw32s9y3dwcb083ds1cz8y6qiiwcajcyj07ld1wxmc0x";
};
}

22
shell.nix Normal file
View File

@ -0,0 +1,22 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "pip-env";
buildInputs = [
# System requirements.
readline
# Python requirements (enough to get a virtualenv going).
python38Full
python38Packages.virtualenv
python38Packages.pip
];
src = null;
shellHook = ''
# Allow the use of wheels.
SOURCE_DATE_EPOCH=$(date +%s)
# Augment the dynamic linker path
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${R}/lib/R/lib:${readline}/lib
'';
}