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