summary refs log tree commit diff
path: root/pkgs/development/python-modules/pgpy
diff options
context:
space:
mode:
authorEdmund Wu <fangkazuto@gmail.com>2019-01-21 11:31:46 -0500
committerEdmund Wu <fangkazuto@gmail.com>2019-08-13 11:25:50 -0400
commitcd878d09d9def5433b040453ce9a27c1e79a2ccf (patch)
treec72517b294f3179c874b796f209490e88afa464f /pkgs/development/python-modules/pgpy
parent15eb9f95abdee254bd4710fe336c77a65ad220f2 (diff)
downloadnixpkgs-cd878d09d9def5433b040453ce9a27c1e79a2ccf.tar
nixpkgs-cd878d09d9def5433b040453ce9a27c1e79a2ccf.tar.gz
nixpkgs-cd878d09d9def5433b040453ce9a27c1e79a2ccf.tar.bz2
nixpkgs-cd878d09d9def5433b040453ce9a27c1e79a2ccf.tar.lz
nixpkgs-cd878d09d9def5433b040453ce9a27c1e79a2ccf.tar.xz
nixpkgs-cd878d09d9def5433b040453ce9a27c1e79a2ccf.tar.zst
nixpkgs-cd878d09d9def5433b040453ce9a27c1e79a2ccf.zip
pythonPackages.pgpy: init at 0.5.2
Diffstat (limited to 'pkgs/development/python-modules/pgpy')
-rw-r--r--pkgs/development/python-modules/pgpy/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pgpy/default.nix b/pkgs/development/python-modules/pgpy/default.nix
new file mode 100644
index 00000000000..50220bb3993
--- /dev/null
+++ b/pkgs/development/python-modules/pgpy/default.nix
@@ -0,0 +1,48 @@
+{ lib, isPy3k, fetchFromGitHub, buildPythonPackage
+, six, enum34, pyasn1, cryptography, singledispatch
+, fetchPypi
+, gpgme, flake8, pytest, pytestcov, pep8-naming, pytest-ordering }:
+
+buildPythonPackage rec {
+  pname = "pgpy";
+  version = "0.5.2";
+
+  src = fetchFromGitHub {
+    owner = "SecurityInnovation";
+    repo = "PGPy";
+    rev = version;
+    sha256 = "1v2b1dyq1sl48d2gw7vn4hv6sasd9ihpzzcq8yvxj9dgfak2y663";
+  };
+
+  propagatedBuildInputs = [
+    six
+    pyasn1
+    cryptography
+    singledispatch
+  ] ++ lib.optional (!isPy3k) enum34;
+
+  checkInputs = [
+    gpgme
+    flake8
+    pytest
+    pytestcov
+    pep8-naming
+    pytest-ordering
+  ];
+
+  checkPhase = ''
+    pytest
+  '';
+
+  meta = with lib; {
+    homepage = https://github.com/SecurityInnovation/PGPy;
+    description = "Pretty Good Privacy for Python 2 and 3";
+    longDescription = ''
+      PGPy is a Python (2 and 3) library for implementing Pretty Good Privacy
+      into Python programs, conforming to the OpenPGP specification per RFC
+      4880.
+    '';
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ eadwu ];
+  };
+}