depot/third_party/nixpkgs/pkgs/development/python-modules/pydes/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
729 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
}:
buildPythonPackage rec {
pname = "pydes";
version = "unstable-2019-01-08";
format = "setuptools";
src = fetchFromGitHub {
owner = "twhiteman";
repo = "pyDes";
rev = "e988a5ffc9abb8010fc75dba54904d1c5dbe83db";
sha256 = "0sic8wbyk5azb4d4m6zbc96lfqcw8s2pzcv9nric5yqc751613ww";
};
checkPhase = ''
${python.interpreter} test_pydes.py
'';
pythonImportsCheck = [ "pyDes" ];
meta = with lib; {
description = "Pure python module which implements the DES and Triple-DES encryption algorithms";
homepage = "https://github.com/twhiteman/pyDes";
license = licenses.mit;
maintainers = with maintainers; [ j0hax ];
};
}