1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycryptodome,
6 pycryptodomex,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "unicrypto";
12 version = "0.0.11";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "skelsec";
19 repo = "unicrypto";
20 tag = version;
21 hash = "sha256-quMh4yQSqbwZwWTJYxW/4F0k2c2nh82FEiNCSeQzhvo=";
22 };
23
24 propagatedBuildInputs = [
25 pycryptodome
26 pycryptodomex
27 ];
28
29 # Module has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "unicrypto" ];
33
34 meta = with lib; {
35 description = "Unified interface for cryptographic libraries";
36 homepage = "https://github.com/skelsec/unicrypto";
37 changelog = "https://github.com/skelsec/unicrypto/releases/tag/${version}";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 };
41}