1{ lib, buildPythonPackage, fetchFromGitHub, python }:
2
3buildPythonPackage rec {
4 pname = "pydes";
5 version = "unstable-2019-01-08";
6
7 src = fetchFromGitHub {
8 owner = "twhiteman";
9 repo = "pyDes";
10 rev = "e988a5ffc9abb8010fc75dba54904d1c5dbe83db";
11 sha256 = "0sic8wbyk5azb4d4m6zbc96lfqcw8s2pzcv9nric5yqc751613ww";
12 };
13
14 checkPhase = ''
15 ${python.interpreter} test_pydes.py
16 '';
17
18 pythonImportsCheck = [ "pyDes" ];
19
20 meta = with lib; {
21 description = "A pure python module which implements the DES and Triple-DES encryption algorithms";
22 homepage = "https://github.com/twhiteman/pyDes";
23 license = licenses.mit;
24 maintainers = with maintainers; [ j0hax ];
25 };
26}