summary refs log blame commit diff
path: root/pkgs/development/python-modules/trustme/default.nix
blob: db966ed4421e20eb7f9d715c7ad3bf2b96b9f983 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
                                                                                                           















                                                                    

                                








                                                                                   
{ lib, buildPythonPackage, fetchPypi, isPy3k, cryptography, futures, pytest, pyopenssl, service-identity }:

buildPythonPackage rec {
  pname = "trustme";
  version = "0.4.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1215vr6l6c0fzsv5gyay82fxd4fidvq2rd94wvjrljs6h2wajazk";
  };

  checkInputs = [ pytest pyopenssl service-identity ];
  checkPhase = ''
    py.test
  '';
  propagatedBuildInputs = [
    cryptography
  ] ++ lib.optionals (!isPy3k) [
    futures
  ];

  meta = {
    description = "#1 quality TLS certs while you wait, for the discerning tester";
    homepage = https://github.com/python-trio/trustme;
    license = with lib.licenses; [ mit asl20 ];
    maintainers = with lib.maintainers; [ catern ];
  };
}