Skip to content
Snippets Groups Projects
Commit c561e025 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Make it possible to run without a custom Hypothesis profile

parent 0ae5bb53
No related branches found
No related tags found
1 merge request!51Disregard `new_length` for pass calculations
{ buildPythonPackage, sphinx, circleci-cli
, attrs, zope_interface, twisted, tahoe-lafs, privacypass
, fixtures, testtools, hypothesis, pyflakes, treq, coverage
, hypothesisProfile ? "default"
, hypothesisProfile ? null
, collectCoverage ? false
}:
let
hypothesisProfile' = if hypothesisProfile == null then "default" else hypothesisProfile;
in
buildPythonPackage rec {
version = "0.0";
pname = "zero-knowledge-access-pass-authorizer";
......@@ -39,7 +42,7 @@ buildPythonPackage rec {
checkPhase = ''
runHook preCheck
"${pyflakes}/bin/pyflakes" src/_zkapauthorizer
ZKAPAUTHORIZER_HYPOTHESIS_PROFILE=${hypothesisProfile} python -m ${if collectCoverage
ZKAPAUTHORIZER_HYPOTHESIS_PROFILE=${hypothesisProfile'} python -m ${if collectCoverage
then "coverage run --branch --source _zkapauthorizer,twisted.plugins.zkapauthorizer --module"
else ""
} twisted.trial _zkapauthorizer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment