1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycryptodome,
6 pycryptodomex,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "unicrypto";
12 version = "0.0.10";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "skelsec";
19 repo = pname;
20 rev = "refs/tags/${version}";
21 hash = "sha256-mZEnYVM5r4utiGwM7bp2SwaDjYsH8AR/Qm5UdPNke0w=";
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}