python3Packages.sjcl: fix build (#403425)

This commit is contained in:
Peder Bergebakken Sundt
2025-05-02 21:24:16 +02:00
committed by GitHub
@@ -2,35 +2,34 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pycryptodome,
unittestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage {
pname = "sjcl";
version = "0.2.1";
format = "setuptools";
pyproject = true;
# PyPi release is missing tests
src = fetchFromGitHub {
owner = "berlincode";
repo = pname;
repo = "sjcl";
# commit from: 2018-08-16, because there aren't any tags on git
rev = "e8bdad312fa99c89c74f8651a1240afba8a9f3bd";
sha256 = "1v8rc55v28v8cl7nxcavj34am005wi63zcvwnbc6pyfbv4ss30ab";
hash = "sha256-S4GhNdnL+WvYsnyzP0zkBYCqyJBbsW4PZWgjsUthGe0=";
};
propagatedBuildInputs = [ pycryptodome ];
build-system = [ setuptools ];
nativeCheckInputs = [ unittestCheckHook ];
dependencies = [ pycryptodome ];
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";
meta = {
description = "Decrypt and encrypt messages compatible to the \"Stanford Javascript Crypto Library (SJCL)\" message format";
homepage = "https://github.com/berlincode/sjcl";
license = licenses.bsd3;
maintainers = with maintainers; [ binsky ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ binsky ];
};
}