Skip to content
Snippets Groups Projects
Select Git revision
  • bdfc6b9b6921f20b4acfe7d84f4cb29c546bc055
  • main default protected
  • restricted-sqlite-strategies
  • compare-structured-sql-dumps
  • 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
13 results

eliot.nix

Blame
  • eliot.nix 796 B
    { lib, buildPythonPackage, fetchPypi, zope_interface, pyrsistent, boltons
    , hypothesis, testtools, pytest }:
    buildPythonPackage rec {
      pname = "eliot";
      version = "1.7.0";
    
      src = fetchPypi {
        inherit pname version;
        sha256 = "0ylyycf717s5qsrx8b9n6m38vyj2k8328lfhn8y6r31824991wv8";
      };
    
      postPatch = ''
        substituteInPlace setup.py \
          --replace "boltons >= 19.0.1" boltons
        # depends on eliot.prettyprint._main which we don't have here.
        rm eliot/tests/test_prettyprint.py
      '';
    
      checkInputs = [ testtools pytest hypothesis ];
      propagatedBuildInputs = [ zope_interface pyrsistent boltons ];
    
      meta = with lib; {
        homepage = https://github.com/itamarst/eliot/;
        description = "Logging library that tells you why it happened";
        license = licenses.asl20;
      };
    }