Skip to content

Instantly share code, notes, and snippets.

@rickhull
Last active July 5, 2020 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickhull/c9d233e2fffbb24f8864d2cfb7fe8cbd to your computer and use it in GitHub Desktop.
Save rickhull/c9d233e2fffbb24f8864d2cfb7fe8cbd to your computer and use it in GitHub Desktop.
shell.nix that prepares tildes for pytest
with import <nixpkgs> {};
with python3Packages;
let
testing_common_database = buildPythonPackage rec {
pname = "testing.common.database";
version = "2.0.3";
src = fetchPypi {
inherit pname version;
sha256 = "965d80b2985315325dc358c3061b174a712f4d4d5bf6a80b58b11f9a1dd86d73";
};
propagatedBuildInputs = [
nose
mock
];
};
testing_redis = buildPythonPackage rec {
pname = "testing.redis";
version = "1.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "be46aeb951589d3f25f1dc5391934582bdadc196baf6bd261d60e71991f2b4f2";
};
propagatedBuildInputs = [
testing_common_database
redis
];
};
sentry-sdk = buildPythonPackage rec {
pname = "sentry-sdk";
version = "0.16.0";
src = fetchPypi {
inherit pname version;
sha256 = "da06bc3641e81ec2c942f87a0676cd9180044fa3d1697524a0005345997542e2";
};
propagatedBuildInputs = [
certifi
urllib3
bottle
django
rq
sanic
flask
sqlalchemy
celery
];
};
in mkShell {
propagatedBuildInputs = [
alembic
unittest2
pytest
pyramid
sentry-sdk
testing_common_database
testing_redis
webtest
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment