Skip to content
Snippets Groups Projects
Select Git revision
  • restricted-sqlite-strategies
  • compare-structured-sql-dumps
  • main default protected
  • 235.backup-and-recovery.recovery
  • mypy
  • real-spender
  • github/fork/tp-la/real-spender
  • 260.metric-rejected-zkaps
  • implicit-lease-renewal-problems
  • mach-nix
  • github/fork/tp-la/deep-traverse
  • v0.0
12 results

zkapauthorizer.nix

Blame
  • zkapauthorizer.nix 991 B
    { 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}";
      src = ./.;
    
      outputs = [ "out" "doc" ];
    
      depsBuildBuild = [
        sphinx
        circleci-cli
      ];
    
      propagatedBuildInputs = [
        attrs
        zope_interface
        twisted
        tahoe-lafs
        privacypass
      ];
    
      checkInputs = [
        coverage
        fixtures
        testtools
        hypothesis
        twisted
        treq
      ];
    
      checkPhase = ''
        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}"
      '';
    }