Newer
Older
{ buildPythonPackage, sphinx, circleci-cli
, attrs, zope_interface, twisted, tahoe-lafs, privacypass
, fixtures, testtools, hypothesis, pyflakes, treq, coverage
buildPythonPackage rec {
version = "0.0";
pname = "zero-knowledge-access-pass-authorizer";
name = "${pname}-${version}";
outputs = [ "out" "doc" ];
depsBuildBuild = [
sphinx
circleci-cli
];
zope_interface
twisted
tahoe-lafs
privacypass
twisted
treq
runHook preCheck
"${pyflakes}/bin/pyflakes" src/_zkapauthorizer
python -m coverage run --branch --source _zkapauthorizer,twisted.plugins.zkapauthorizer --module twisted.trial _zkapauthorizer
runHook postCheck
'';
postCheck = ''
python -m coverage html
mkdir -p "$doc/share/doc/${name}"
cp -vr .coverage htmlcov "$doc/share/doc/${name}"