lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.sjcl: modernize

+12 -10
+12 -10
pkgs/development/python-modules/sjcl/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 + setuptools, 5 6 pycryptodome, 6 7 }: 7 8 8 - buildPythonPackage rec { 9 + buildPythonPackage { 9 10 pname = "sjcl"; 10 11 version = "0.2.1"; 11 - 12 - format = "setuptools"; 12 + pyproject = true; 13 13 14 14 # PyPi release is missing tests 15 15 src = fetchFromGitHub { 16 16 owner = "berlincode"; 17 - repo = pname; 17 + repo = "sjcl"; 18 18 # commit from: 2018-08-16, because there aren't any tags on git 19 19 rev = "e8bdad312fa99c89c74f8651a1240afba8a9f3bd"; 20 - sha256 = "1v8rc55v28v8cl7nxcavj34am005wi63zcvwnbc6pyfbv4ss30ab"; 20 + hash = "sha256-S4GhNdnL+WvYsnyzP0zkBYCqyJBbsW4PZWgjsUthGe0="; 21 21 }; 22 22 23 - propagatedBuildInputs = [ pycryptodome ]; 23 + build-system = [ setuptools ]; 24 + 25 + dependencies = [ pycryptodome ]; 24 26 25 27 pythonImportsCheck = [ "sjcl" ]; 26 28 27 - meta = with lib; { 28 - description = "Decrypt and encrypt messages compatible to the \"Stanford Javascript Crypto Library (SJCL)\" message format. This is a wrapper around pycrypto"; 29 + meta = { 30 + description = "Decrypt and encrypt messages compatible to the \"Stanford Javascript Crypto Library (SJCL)\" message format"; 29 31 homepage = "https://github.com/berlincode/sjcl"; 30 - license = licenses.bsd3; 31 - maintainers = with maintainers; [ binsky ]; 32 + license = lib.licenses.bsd3; 33 + maintainers = with lib.maintainers; [ binsky ]; 32 34 }; 33 35 }