Merge pull request #171658 from binsky08/sjcl_init

python3Packages.sjcl: init at 0.2.1
main
Martin Weinelt 2 years ago committed by GitHub
commit 3f07689806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      maintainers/maintainer-list.nix
  2. 42
      pkgs/development/python-modules/sjcl/default.nix
  3. 2
      pkgs/top-level/python-packages.nix

@ -1598,6 +1598,12 @@
githubId = 185443;
name = "Alexey Lebedeff";
};
binsky = {
email = "timo@binsky.org";
github = "binsky08";
githubId = 30630233;
name = "Timo Triebensky";
};
bjg = {
email = "bjg@gnu.org";
name = "Brian Gough";

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pycryptodome
, python
}:
buildPythonPackage rec {
pname = "sjcl";
version = "0.2.1";
format = "setuptools";
# PyPi release is missing tests
src = fetchFromGitHub {
owner = "berlincode";
repo = pname;
# commit from: 2018-08-16, because there aren't any tags on git
rev = "e8bdad312fa99c89c74f8651a1240afba8a9f3bd";
sha256 = "1v8rc55v28v8cl7nxcavj34am005wi63zcvwnbc6pyfbv4ss30ab";
};
propagatedBuildInputs = [ pycryptodome ];
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover
runHook postCheck
'';
pythonImportsCheck = [
"sjcl"
];
meta = with lib; {
description = "Decrypt and encrypt messages compatible to the \"Stanford Javascript Crypto Library (SJCL)\" message format. This is a wrapper around pycrypto.";
homepage = "https://github.com/berlincode/sjcl";
license = licenses.bsd3;
maintainers = with maintainers; [ binsky ];
};
}

@ -9495,6 +9495,8 @@ in {
six = callPackage ../development/python-modules/six { };
sjcl = callPackage ../development/python-modules/sjcl { };
skein = callPackage ../development/python-modules/skein { };
skidl = callPackage ../development/python-modules/skidl { };

Loading…
Cancel
Save