Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pgpy / default.nix
blob2c527d87d18658428923a0285bae35500781486b
1 { lib, isPy3k, fetchFromGitHub, buildPythonPackage
2 , six, enum34, pyasn1, cryptography, singledispatch
3 , fetchPypi, pytestCheckHook }:
5 buildPythonPackage rec {
6   pname = "pgpy";
7   version = "0.5.2";
9   src = fetchFromGitHub {
10     owner = "SecurityInnovation";
11     repo = "PGPy";
12     rev = version;
13     sha256 = "1v2b1dyq1sl48d2gw7vn4hv6sasd9ihpzzcq8yvxj9dgfak2y663";
14   };
16   propagatedBuildInputs = [
17     six
18     pyasn1
19     cryptography
20     singledispatch
21   ] ++ lib.optional (!isPy3k) enum34;
23   checkInputs = [
24     pytestCheckHook
25   ];
27   disabledTests = [ "test_sign_string" "test_verify_string" ];
29   meta = with lib; {
30     homepage = "https://github.com/SecurityInnovation/PGPy";
31     description = "Pretty Good Privacy for Python 2 and 3";
32     longDescription = ''
33       PGPy is a Python (2 and 3) library for implementing Pretty Good Privacy
34       into Python programs, conforming to the OpenPGP specification per RFC
35       4880.
36     '';
37     license = licenses.bsd3;
38     maintainers = with maintainers; [ eadwu ];
39   };