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